Thanks Alex but I would just like a title, on the top of the graph. There is no way to put legends at the top and also they behave strangely if you don’t specify a label for the dataset.

--
Does this mail seem too brief? Sorry for that, I don’t mean to be rude! Please see http://emailcharter.org .

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of Chile

On 12 Dec 2016, at 15:00, Alexandre Bergel <alexandre.bergel@me.com> wrote:

You can have legends, such as in:

-=-=-=-=-=-=-=-=-=-=-=-=
b := RTGrapher new.
b extent: 300 @ 300.

(Array with: Color red with: Color blue with: Color green with: Color yellow) doWithIndex: [ :color :i |
ds := RTData new.
ds label: 'x^', i asString.
ds dotShape ellipse size: 0.
ds points: (0.0 to: 10.0 by: 0.1).
ds connectColor: color.
ds x: #yourself.
ds y: [ :v | v raisedTo: i ].
b add: ds.
].

b axisXWithNumberOfTicks: 3.
b axisYWithNumberOfTicks: 4.
b legend right.
^ b
-=-=-=-=-=-=-=-=-=-=-=-=
<Screen Shot 2016-12-12 at 6.52.11 PM.png>

Here is another example:

-=-=-=-=-=-=-=-=
b := RTGrapher new.

ds := RTData new.
ds label: 'Classes'.
ds points: (Collection withAllSubclasses reverseSortedAs: #numberOfMethods).
ds barShape color: Color red.
ds y: #numberOfMethods.
b add: ds.

b legend 
addText: 'Size of collection classes'.
b
-=-=-=-=-=-=-=-=

<Screen Shot 2016-12-12 at 6.57.53 PM.png>


Cheers,
Alexandre

On Dec 12, 2016, at 5:47 PM, Johan Fabry <jfabry@dcc.uchile.cl> wrote:

Hi All,

I was looking for a way to get a title on a graph made with RTGrapher. I have so many open that sometimes I forget which ones is which. A title would help but I cannot find a straightforward way to add one. Is this possible?

--
Does this mail seem too brief? Sorry for that, I don’t mean to be rude! Please see http://emailcharter.org .

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of Chile

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

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



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