[NB: forwarded to the moose mailing list as other may be interested in this] This is a tricky situation, for which I have found a solution. Consider the script -=-=--=-=--=-=--=-=- b := RTGrapher new. d := RTData new. d points: #(3 4 5). d barShape. b add: d. b axisX noLabel; noTick. b -=-=--=-=--=-=--=-=- produces As always. You can now send #noAlignmentOffset to the data to remove the offset. -=-=-=-=-=-= b := RTGrapher new. d := RTData new. d points: #(3 4 5). d barShape. d noAlignmentOffset. b add: d. b axisX noLabel; noTick. b -=-=-=-=-=-= produces: It is visually less appealing, however it works well when you combine it with other data sets: -=-=-=-=-=-=b := RTGrapher new. d := RTData new. d points: #(3 4 3.5). d barShape. d noAlignmentOffset. b add: d. d := RTData new. d points: #(3 4 3.5). d connectColor: Color red. b add: d. b -=-=-=-=-=-= This is committed in Pharo Alexandre On Oct 15, 2015, at 7:27 AM, Thomas Brodt <[hidden email]> wrote: -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. _______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Hi,
On a related matter, there is any way to make axis be numbered according to the type of data, por example using integer data points will set the axis as integers (like in the first example) but adding a 3.5 will make the axis scale like is now. I don't know if this default makes sense (it does to me). Cheers, Offray On 20/10/15 16:35, Alexandre Bergel
wrote:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Hi Offray,
Sure, you can do: | b d | b := RTGrapher new. d := RTData new. d points: #(3 4 3.5). d barShape. d noAlignmentOffset. b add: d. d := RTData new. d points: #(3 4 3.5). d connectColor: Color red. b add: d. b maxX: 5. b axisX numberOfLabels: 5; noDecimal. b
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Je je,
Pretty nice. Here is a grafoscopio screenshot of my last twitter scrapping data notebook: Cheers, Offray On 21/10/15 15:55, Alexandre Bergel
wrote:
b axisX _______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Excellent!
Alexandre > Le 21 oct. 2015 à 18:18, Offray Vladimir Luna Cárdenas <[hidden email]> a écrit : > > Je je, > > Pretty nice. Here is a grafoscopio screenshot of my last twitter scrapping data notebook: > >
> > Cheers, > > Offray > >> On 21/10/15 15:55, Alexandre Bergel wrote: >> b axisX > > _______________________________________________ > 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 hfbfahdb..png (183K) Download Attachment |
Free forum by Nabble | Edit this page |