Re: Charts (was: New Graphing Tools)
Steve Thomas <sthomas1-gQhbkF4bah9Wk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.squeak.squeakland |
|---|---|
| Message-ID | <CAGa9PAb+izw8ZzCUAt=wqQWBhniGGSt9+6r-9sNYmt=EnGAmsw@mail.gmail.com> |
Some other thoughts/questions: - Perhaps have an option to show 0 (or not). This would be useful for when you have two axis that intersect at 0, as it would look better if we didn't show the 0 labels. - When I change the *Line's min val* it changes the max value (and vica versa). Hmmm, okay I think I'm beginning to understand why you did this. I was used to setting the min and max value for the axis and having the scale adjust as opposed to the scale setting the max value (well "Invert always invert" ;) Have to think about this. - The labels seem a little too close to the number lines. - It would be nice to have tiles to specify the font and size for the labels. (Or course it would be nice to tiles to specify font, size, centered/left flush|right flush|centered, for all text objects :) - How can you set the arrow head for the negative direction? Stephen On Sun, Oct 16, 2011 at 8:16 PM, Ricardo Moran <[email protected]>wrote: > Hi guys, I'm trying again with the graphing tools. It's been a while since > I worked on this (sorry about that) but I really want to see them > integrated. > > So now I'm following Bert's suggestions and I'm trying with a less general > approach: I'm not introducing a new scale on top of the existing one, > instead I just added a "current object" slot on the number lines, and a > "current object position in chart" slot that transforms from squeak's pixel > to the number line scale and viceversa. > > The implementation is much simpler than before but it's more uncomfortable > IMHO. I think it would be best to have two "transform" functions accepting a > number as argument and returning it transformed from one scale to the other. > Unfortunately, it seems Etoys doesn't support this kind of functions nicely, > all the examples I could find (such as #color:sees:) seem to be a little > hacked and I wasn't sure if following that path was the right way to > proceed. > > I think the best would be for you to test it and tell me what you think. > I'm attaching a project with the new number lines. > Thanks! > > Richo > > P.S. I also renamed the project to Charts as Bert suggested > > _______________________________________________ > squeakland mailing list > [email protected] > http://lists.squeakland.org/mailman/listinfo/squeakland > > _______________________________________________ squeakland mailing list [email protected] http://lists.squeakland.org/mailman/listinfo/squeakland