From: Bruce S. <Bru...@nc...> - 2008-05-15 03:31:36
|
This isn't really documented as it should be, but if you create a named gdisplay, such as mygraph = gdisplay(), than mygraph.display is the display in which the graph is made, using nonuniform axes. You could place label objects at specific graphing locations by saying label(display=mygraph.display, pos=(x,y), text="Energy"). Bruce Sherwood Nathan Moore wrote: > Hi all, > > I'd like to include a key/legend in a plot generated by vpython. > What's the easiest way to set this up? > > I realize that one can specify a few comments in the title='some title > text' gdisplay argument, but I'm trying to illustrate a figure with 6 > lines, comments about which won't fit in the title bar. > > Nathan > > -- > - - - - - - - - - - - - - - - - - - - - - > Nathan Moore > Assistant Professor, Physics > Winona State University > AIM: nmoorewsu > - - - - - - - - - - - - - - - - - - - - - > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |