Dear Roassal users and developers, I'm using Roassal in Pharo 4 and want to stack visualizations, something like: | stack1 stack2 | stack1 := RTStackBarPlot new. stack1 add: #(1 2 3 4). stack1 add: #(4 3 2 1). stack1 add: #(5 3 2 0). stack1 build. stack2 := RTStackBarPlot new. stack2 add: #(2 2 3 1). stack2 add: #(4 3 2 2). stack2 add: #(6 1 2 0). stack2 build. ^ (stack1 , stack2) view or stack1 append: stack2 is this currently possible? Cheers Hernán _______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Sure!
You need to use a RTComposer. Here is an example: -=-=-=-=-=-=-=-=-=-=-=-= c := RTComposer new. stack1 := RTStackBarPlot new. stack1 view: c view. stack1 add: #(1 2 3 4). stack1 add: #(4 3 2 1). stack1 add: #(5 3 2 0). stack1 build. c group: 'stack1'. c nameGroup: 'stack1' as: 'My great data set'. stack2 := RTStackBarPlot new. stack2 view: c view. stack2 add: #(2 2 3 1). stack2 add: #(4 3 2 2). stack2 add: #(6 1 2 0). stack2 build. c group: 'stack2'. c nameGroup: 'stack2' as: 'Another awesome data set'. c layout: RTVerticalLineLayout new. c view -=-=-=-=-=-=-=-=-=-=-=-= You should end up with: Title are optional. You can remove the call of nameGroup:as: if you wish. Cheers, Alexandre NB: Strange, when I reply, the name of Offray appear while Hernan sent the original mail. No idea what’s going on
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
It worked perfectly! Thank you Alex,2015-11-30 10:17 GMT-03:00 Alexandre Bergel <[hidden email]>:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Free forum by Nabble | Edit this page |