void setup()
{
size(500,400);
smooth();
}
// create arrays to hold data results
// create one array to hold conservative data
// create a second array to hold data on labour
// create a third array to hold data on liberal democrates
void draw()
{
float [][] multiid = {
{38.6, 35.9, 38.6},
{33.7, 33.0, 32.8},
{27.7,31.1,28.6},
};
// design a two dimensional loopp
for (int i=0; i < multiid.length; i++)
{
for(int x=0; x < multiid[i].length; x++)
{
fill(255,0,0);
ellipse(20*i+20,20+40*x, multiid[i][x], multiid[i][x]);
text(multiid[i][x], 100*i ,100*x);
}
}
}
as i have just realised the loop is not accessing the data as i first expected i will not work on a revison
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Step 1: First you need to download and install python. You can get a python installation from http://www.python.org/download/ Step 2: now...
-
In this file i purposely made mistakes to see what would happen. I hope this helps
-
to settup the database for Django step 1: go to the settings file ENGINE': 'django.db.backends.sqlite3', # Add 'postgresq...
No comments:
Post a Comment