Sorry, here is the correct script:
-=-=-=-=-=-=-=-=-=
"This example shows how to control the center of the graph.
Roassal assumes to have 0 @ 0, however you can subtract a value using #x: and
#y:, and then add it in #labelConversion: to move the center of the graph"
graphCenter := 5 @ 10.
data :=
Another example:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"This example shows how to control the center of the graph.
Roassal assumes to have 0 @ 0, however you can subtract a value using #x: and
#y:, and then add it in #labelConversion: to move the center of the graph"
graphCenter := 5 @ 10.
data := (-3.14
Hi Evan,
Roassal assumes to have 0 @ 0. However, you do a manual translation that works
very well. Check this:
-=-=-=-=-=-=-=-=-=-=-=-=https://www.dropbox.com/s/oun1w85ypv1kbka/Screenshot%202017-12-19%2015.02.07.png?dl=0
data := #(1000 1001 1002).
b := RTGrapher new.
ds := RTData new.
ds poin
Does anyone know how to change the min/max of the axes? I'm trying to
figure out how to make x and y not start at 0.
data := #(1000 1001 1002).
b := RTGrapher new.
ds := RTData new.
ds points: data.
ds x: [ :c | c ].
ds y: [ :c | c ].
b add: ds.
b minX: 999.
b maxX: 1003.
b minY: 999.
b maxY: 1003