How to make a simple line graph

4 Comments

Liz

Is there a way of making a surface plot from data? Or can LiveCode only deal with two dimensions of data?

Hanson Schmidt-Cornelius

Hi Liz,

LiveCode does not have a built in command to create 3D plots. You would have to write that functionality yourself. The information in this lesson could be a good starting point for such an application.

Kind Regards,

Hanson

MaxV

Hi,
other languages use the same X,Y GUI axis orientation, so their trick to create graphs is to avoid all math, just creating the final image, flipping it (to correct Y axis direction) and translating to the right position.
Can LiveCode do the same?

Hanson Schmidt-Cornelius

Hi Max,

yes, you could draw a graph take an image of the region and then rotate it. For example by using "export snapshot" and "flip".
Also have a look at "revRotatePoly" to rotate the polygon. May come in handy.

Kind Regards,

Hanson

Add your comment

E-Mail me when someone replies to this comment