Hi Hernán,
Sorry for the late reply.
Regarding your first question, you can do:
-=-=-=-=-=-=
g := RTGrapher new.
d := RTData new.
d connectColor: Color blue.
d noDot.
d points: (-3.14 to: 3.14 by: 0.1).
d y: #sin.
d x: #yourself.
g add: d.
g axisX numberOfTicks: 10; numberOfLabels: 5.
g
-=-=-=-=-=-=
As you can see, the line "g axisX numberOfTicks: 10; numberOfLabels: 5.” allows you to set the number of ticks and the number of labels.
Regarding your second question, where can I find the file OrderedCollection_3712516797.obj ?
Or, how can I reproduce it.
Anyway, I believe the problem is that you have too many points. In this case, I suggest you to reduce the number of points.
For example, a slight variation of the previous example [DO NOT RUN IT]:
-=-=-=-=-=-=
points := -3.14 to: 3.14 by: 0.000001.
g := RTGrapher new.
d := RTData new.
d connectColor: Color blue.
d noDot.
d points: points.
d y: #sin.
d x: #yourself.
g add: d.
g axisX numberOfTicks: 10; numberOfLabels: 5.
g
-=-=-=-=-=-=
The script tries to build the same graph but with 6 280 001 points. Which obviously, is way too many.
Instead, you can do something like:
-=-=-=-=-=-=
points := SortedCollection new.
1000 timesRepeat: [ points add: (-3.14 to: 3.14 by: 0.000001) atRandom ].
g := RTGrapher new.
d := RTData new.
d connectColor: Color blue.
d noDot.
d points: points.
d y: #sin.
d x: #yourself.
g add: d.
g axisX numberOfTicks: 10; numberOfLabels: 5.
g
-=-=-=-=-=-=
Which only display the graph with 1000 points.
Cheers,
Alexandre
On Oct 4, 2018, at 12:49 AM, Hernán Morales Durand <[hidden email]> wrote:
This is weird, could you check:
http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/2018-October/040771.html
Hernán
El mié., 3 oct. 2018 a las 22:41, Alexandre Bergel
(<[hidden email]>) escribió:
I am lost. What are the questions? I do not see them in the mailing list.
Alexandre
On Oct 3, 2018, at 11:11 AM, Hernán Morales Durand <[hidden email]> wrote:
Hi Alex,
Thanks. Please note there are two questions related to Roassal :)
I have isolated the script so you don't need to load BioSmalltalk
Maybe someone can check or give a hint?
El mar., 2 oct. 2018 a las 22:31, Alexandre Bergel
(<[hidden email]>) escribió:
Pretty cool!
Alexandre
On Oct 2, 2018, at 2:21 AM, Hernán Morales Durand <[hidden email]> wrote:
<a TRMorph(28411392).png><skew_diagram_ecoli.png>
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev