Graph drawing issues

I'm working on a program that'll draw a graph and I'm having some issues that i can't work out what's up with it. Can someone take a look at it and let me know what I'm doing wrong?
Snap! graph (berkeley.edu)

What's your problem? I don't understand what issue you're talking about. Explain more?

it isn't really drawing the line quite in the right place. Based on the data i gave it it should be drawing a diagonal line from the bottom left to the top right but it's a bit off on positioning

In drawGraphLine, change:
graph script pic (1)

...to:
graph script pic

P.S. You don't need to use camel case to name your blocks. You can use normal case to name blocks so it's easier for people to read.

That works, thanks so much!!
I just use the camel case out of habit haha, good idea to change it though

what's a "camel case" ?

It's a set of words without spaces on where the first word is all lower case, and uppercase on the first letter of every other word. For example, sevenTheWolfFoxHybrid.

graph script pic

where is 0,0 supposed to be (and 1,1)

It can be uppercase, it has similar names.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.