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 [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
+1 Yes how to set the SystemWindow labels On Mon, Dec 12, 2016 at 08:47 Johan Fabry <[hidden email]> wrote: Hi All, _______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
In reply to this post by jfabry
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 -=-=-=-=-=-=-=-=-=-=-=-= 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 -=-=-=-=-=-=-=-= Cheers, Alexandre On Dec 12, 2016, at 5:47 PM, Johan Fabry <[hidden email]> wrote: -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. _______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
In reply to this post by Kjell Godo
Hi,
If you use the integration of Roassal from Glamour, you can use openWithToolbarEntitled:. For example: | b ds | b := RTGrapher new. b extent: 900 @ 200. ds := RTData new. ds interaction highlight. ds points: RTShape withAllSubclasses. ds barShape width: 10. ds y: #numberOfMethods. ds barChartWithBarTitle: #name. b add: ds. b openWithToolbarEntitled: 'My graph’ Cheers, Doru > On Dec 12, 2016, at 12:58 PM, Kjell Godo <[hidden email]> wrote: > > +1 > > Yes how to set the SystemWindow labels > > > > On Mon, Dec 12, 2016 at 08:47 Johan Fabry <[hidden email]> 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 > > [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 -- www.tudorgirba.com www.feenk.com "Be rather willing to give than demanding to get." _______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
In reply to this post by abergel
+1 legends but how are you supposed to change the SystemWindow label programmatically in general? My guess is that the >>open >>openOn: Methods always return aSystemWindow so then you can do aSystemWindow label: 'A Window Title' ( b open ) label: 'A Window Title' correct me if i am wrong On Mon, Dec 12, 2016 at 10:01 Alexandre Bergel <[hidden email]> wrote:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev Screen Shot 2016-12-12 at 6.52.11 PM.png (39K) Download Attachment |
In reply to this post by Tudor Girba-2
+1 On Mon, Dec 12, 2016 at 10:10 Tudor Girba <[hidden email]> wrote: Hi, _______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
+1
_______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
In reply to this post by abergel
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
_______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
In reply to this post by Tudor Girba-2
Thanks Doru but I am using it inside the inspector already and I need the graph to show up in the next pane. openWithToolbarEntitled: makes it open in a new window, which breaks the flow. :-( -- 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:10, Tudor Girba <[hidden email]> wrote: > > Hi, > > If you use the integration of Roassal from Glamour, you can use openWithToolbarEntitled:. For example: > > | b ds | > b := RTGrapher new. > b extent: 900 @ 200. > ds := RTData new. > ds interaction highlight. > ds points: RTShape withAllSubclasses. > ds barShape width: 10. > ds y: #numberOfMethods. > ds barChartWithBarTitle: #name. > b add: ds. > b openWithToolbarEntitled: 'My graph’ > > > Cheers, > Doru > > > > > >> On Dec 12, 2016, at 12:58 PM, Kjell Godo <[hidden email]> wrote: >> >> +1 >> >> Yes how to set the SystemWindow labels >> >> >> >> On Mon, Dec 12, 2016 at 08:47 Johan Fabry <[hidden email]> 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 >> >> [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 > > -- > www.tudorgirba.com > www.feenk.com > > "Be rather willing to give than demanding to get." > > > > > _______________________________________________ > 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 |
In reply to this post by jfabry
Hi Johan!
I have just created a decorator for this. (you need to update Roassal). Look: | b ds | b := RTGrapher new. ds := RTData new. ds dotShape color: Color red. ds points: #(5 1 20 8 4 2 10 23). b add: ds. b addDecorator: (RTAverageDecorator new withLabel: #asFloat). b addDecorator: (RTTitleDecorator new height: 20; title: 'Example'). ^ b On Dec 12, 2016, at 9:36 PM, Johan Fabry <[hidden email]> wrote: -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. _______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
-- 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 [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Free forum by Nabble | Edit this page |