How to use PlotMorph?
Raymond Asselin
raymondasselin at sympatico.ca
Tue Feb 3 01:36:06 UTC 2004
The 2004/02/02, Kwiyi Woo <kwiyi at hotmail.com> wrote :
>Hi,
>I got the idea and successfully created my own graph. Thanks.
>But now I am trying to remove the grid on the Axis coordinators. In
other
>words, I only want to keep the X and Y axis without having others grid
on
>the background. Is there any attribute I can turn off.
Hi,
as you see in a SystemBrowser 5 classes are used to make
aPlotMorph: AxesMorph, PlotMorph, PlotMorphGrid, PlotPoint and
PlotSeries.
So if you want to get rid of PlotMorphGrid you have to find where this
class is used.
One way to find this is: (1) to select the PlotMorphGrid class in the
SystemBrowser and (2) to choose in the contextual menu (alt+click on a
Mac // right button on Windows) the menu item class refs¹ this will
open a window with the users¹ of the selected class. You¹ll see that
there is only one user, it is the class AxesMorph in is initialize¹
method. (3) Select it and you will see in the bottom pane the code.
Find in which statement PlotMorphGrid is used.
³grid := PlotMorphGrid on: self.²
I tried ³grid := self.² and the result seem to be what you are looking
for.
So remember to look for the class refs¹ of a class when you want to
know who¹ use it, or how¹ it is used.
Ray
More information about the Squeak-dev
mailing list
|