Re: [Pharo-users] Roassal Axes

2017-12-19 Thread Alexandre Bergel
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 :=

Re: [Pharo-users] Roassal Axes

2017-12-19 Thread Alexandre Bergel
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

Re: [Pharo-users] Roassal Axes

2017-12-19 Thread Alexandre Bergel
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

[Pharo-users] Roassal Axes

2017-12-19 Thread Evan Donahue
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