Hi! I am a newbie in Smalltalk and specially en Eyesee.
I'm having trouble with the scale of the Y axis in a vertical bar diagram. If I define a dictionary as d := {'a'->(1/3) . 'b'->(3/2) . 'c'->(7/4)}. I can create a nice diagram with this chart := ESDiagramRenderer new. chart verticalBarDiagram y: [:eachAssociation | eachAssociation value]; identifier: [:eachAssociation | eachAssociation key]; regularAxis; models: d . chart open whose Y axis is very well populated with labels indicating different steps in the scale. But if I redefine d as d := {'a'->(1/3) . 'b'->(7/5) . 'c'->(17/4)}. (which is closer to the data I am working on) most of the labels in the Y axis are gone. How can I instruct Eyesee to show a more informative scale? Thanks in advance for your help. Cheers Lautaro Pecile. _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hi Lautaro,
This is likely a bug that was introduced when they fixed the regularAxis to not show too many values - it apparently now can show too few. If this isn't fixed shortly by someone else on the list, I'll get to it in the next day. As an alternative, try using #valueAxis; it will show reasonable values for the axis. I find that option very interesting most of the time: chart := ESDiagramRenderer new. chart verticalBarDiagram y: [:eachAssociation | eachAssociation value]; identifier: [:eachAssociation | eachAssociation key]; valueAxis; models: d . chart open -Chris On Wed, Aug 1, 2012 at 11:52 AM, Lautaro Maximiliano pecile <[hidden email]> wrote: > Hi! I am a newbie in Smalltalk and specially en Eyesee. > I'm having trouble with the scale of the Y axis in a vertical bar diagram. > > If I define a dictionary as > d := {'a'->(1/3) . 'b'->(3/2) . 'c'->(7/4)}. > > I can create a nice diagram with this > > chart := ESDiagramRenderer new. > chart verticalBarDiagram > y: [:eachAssociation | eachAssociation value]; > identifier: [:eachAssociation | eachAssociation key]; > regularAxis; > models: d . > chart open > > whose Y axis is very well populated with labels indicating different steps > in the scale. > > But if I redefine d as > > d := {'a'->(1/3) . 'b'->(7/5) . 'c'->(17/4)}. > > (which is closer to the data I am working on) most of the labels in the Y > axis are gone. > > How can I instruct Eyesee to show a more informative scale? > > Thanks in advance for your help. > > Cheers > > Lautaro Pecile. > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Lautaro: Welcome!
Chris: Thanks for looking into this :) Cheers, Doru On 1 Aug 2012, at 21:07, Chris Cunningham wrote: > Hi Lautaro, > > This is likely a bug that was introduced when they fixed the > regularAxis to not show too many values - it apparently now can show > too few. If this isn't fixed shortly by someone else on the list, > I'll get to it in the next day. > > As an alternative, try using #valueAxis; it will show reasonable > values for the axis. I find that option very interesting most of the > time: > > chart := ESDiagramRenderer new. > chart verticalBarDiagram > y: [:eachAssociation | eachAssociation value]; > identifier: [:eachAssociation | eachAssociation key]; > valueAxis; > models: d . > chart open > > -Chris > On Wed, Aug 1, 2012 at 11:52 AM, Lautaro Maximiliano pecile > <[hidden email]> wrote: >> Hi! I am a newbie in Smalltalk and specially en Eyesee. >> I'm having trouble with the scale of the Y axis in a vertical bar diagram. >> >> If I define a dictionary as >> d := {'a'->(1/3) . 'b'->(3/2) . 'c'->(7/4)}. >> >> I can create a nice diagram with this >> >> chart := ESDiagramRenderer new. >> chart verticalBarDiagram >> y: [:eachAssociation | eachAssociation value]; >> identifier: [:eachAssociation | eachAssociation key]; >> regularAxis; >> models: d . >> chart open >> >> whose Y axis is very well populated with labels indicating different steps >> in the scale. >> >> But if I redefine d as >> >> d := {'a'->(1/3) . 'b'->(7/5) . 'c'->(17/4)}. >> >> (which is closer to the data I am working on) most of the labels in the Y >> axis are gone. >> >> How can I instruct Eyesee to show a more informative scale? >> >> Thanks in advance for your help. >> >> Cheers >> >> Lautaro Pecile. >> _______________________________________________ >> Moose-dev mailing list >> [hidden email] >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev -- www.tudorgirba.com "It's not what we do that matters most, it's how we do it." _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
In reply to this post by cbc
Thanks Chris! That was very helpful.
Lautaro. El 01/08/12 16:07, Chris Cunningham escribió: > Hi Lautaro, > > This is likely a bug that was introduced when they fixed the > regularAxis to not show too many values - it apparently now can show > too few. If this isn't fixed shortly by someone else on the list, > I'll get to it in the next day. > > As an alternative, try using #valueAxis; it will show reasonable > values for the axis. I find that option very interesting most of the > time: > > chart := ESDiagramRenderer new. > chart verticalBarDiagram > y: [:eachAssociation | eachAssociation value]; > identifier: [:eachAssociation | eachAssociation key]; > valueAxis; > models: d . > chart open > > -Chris _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
If you load the latest EyeSee (at least the axis package), it will now
have at least 5 ticks on the Y scale (for #regularAxis). It may have more - but it won't have just the max/min anymore. -Chris On Wed, Aug 1, 2012 at 12:24 PM, Lautaro Maximiliano pecile <[hidden email]> wrote: > Thanks Chris! That was very helpful. > > Lautaro. > > El 01/08/12 16:07, Chris Cunningham escribió: > >> Hi Lautaro, >> >> This is likely a bug that was introduced when they fixed the >> regularAxis to not show too many values - it apparently now can show >> too few. If this isn't fixed shortly by someone else on the list, >> I'll get to it in the next day. >> >> As an alternative, try using #valueAxis; it will show reasonable >> values for the axis. I find that option very interesting most of the >> time: >> >> chart := ESDiagramRenderer new. >> chart verticalBarDiagram >> y: [:eachAssociation | eachAssociation value]; >> identifier: [:eachAssociation | eachAssociation key]; >> valueAxis; >> models: d . >> chart open >> >> -Chris > > > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Free forum by Nabble | Edit this page |