Yes, this is very cool. Thanks Peter!

Alexandre



On Sep 8, 2016, at 8:28 PM, i.uhnak@gmail.com wrote:

Hi,
 
I’ve added #withoutOrigin for this purpose, but I don’t know the exact commit number, it was some time ago.
 
Keep in mind, that you need to also set the minX value, e.g.:
 
| b values ds |
b := RTGrapher new.
values := #(5 6 7 -1 -3).
b extent: 400 @ 300.
b minX: 1.
b withoutOrigin.
 
ds := RTData new.
ds interaction popup.
ds points: values.
ds connectColor: Color red.
ds y: #yourself.
 
b add: ds.
 
b build.
^ b view
 
Peter
 
 
From: Hernán Morales Durand
Sent: Thursday, September 8, 2016 10:17 PM
To: Moose-related development
Subject: [Moose-dev] Grapher: Set X axis start at custom value
 

Hello

I am using Roassal2-AlexandreBergel.1335 in Pharo 5.

Most, if not all, Grapher example visualizations starts at point 0 in the X axis. My points are chromosome positions starting at 7,000,000. Is there a way to configure the X axis to start from that position or a custom value? (X label always start at 0 but points does not get rendered until 7M).
 
If you take the following as example, I would like to start the X axis at 1 approx removing the empty range between 0 and 1.


| b values ds |
b := RTGrapher new.
values := #(5 6 7 -1 -3).
b extent: 400 @ 300.

ds := RTData new.
ds interaction popup.
ds points: values.
ds connectColor: Color red.
ds y: #yourself.

b add: ds.

b build.
^ b view

Hernan

 
_______________________________________________
Moose-dev mailing list
Moose-dev@list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev