Herbert König pisze: > Hi Mateusz, > > you also might want to enter ScaleMorph example4 into a workspace, > resize it with the yellow halo button for smooth resizing. Also that > author made the numbers submorphs while the tickmarks where no objects > of their own. > > Don't know his reasons but I copied this and the lines on my plots were > Morphs so I could drag them as part of the UI. > > Cheers > > Herbert > > Am 07.12.2013 20:15, schrieb Herbert König: >> aahh, now I saw the code in the class comment. >> >> I copied it into a workspace like this: >> >> |mgRelation| >> mgRelation := MGRelationOnLeftToRightBlock new. >> mgRelation block: [:x|x squared]. >> mgPlotMorph addRelation: mgRelation. >> >> and it raises a debugger. >> >> First it should be possible to run it from the browser. My example >> methods usually have "self example1" in the method comment. >> Secondly the example should work after just loading the code :-)) >> >> At least now I understand that you had a function plotter in mind. Now >> MGRelation starts to make some sense. >> >> Ok, reading the whole comment I did: >> >> |mgRelation mgPlotMorph| >> mgPlotMorph := MGPlotMorph new. >> mgPlotMorph openInWorld. >> mgRelation := MGRelationOnLeftToRightBlock new. >> mgRelation block: [:x|x squared]. >> mgPlotMorph addRelation: mgRelation. >> >> See how stupid your users are :-)) >> >> >> >> Cheers >> >> Herbert >> >> Am 07.12.2013 19:59, schrieb Herbert König: >>> Hi Mateusz, >>> >>> it will be helpful for a user if you had some class side methods to >>> create some examples. >>> >>> I wanted to try your code and didn't know where to start. I rolled >>> my own in 2007 (for plotting frequency responses), didn't use it >>> since then and when the need arose this May I could use it by just >>> starting from those examples. I assume you had something different in >>> mind and for your plotting purposes your class and method names are >>> perfectly natural :-) >>> >>> This is no criticism, its just to show you how a person interested in >>> your code may be completely confused because his view is clouded by >>> his own preconceptions which are different from yours. >>> >>> >>> Cheers >>> >>> Herbert >>>
Thank you for all your advice. _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners