As someone who has switched from plplot's mother (grandmother?) pgplot I would remark that pgplot has all these "get" routines as well as a nestable pgsave/pgunsave that would remember a whole set of attributes including (from memory) line thickness, colour, style, fill pattern. I use these all the time so that I can go plot something specific and know I can get back to the precious settings. If, for example, you want to thicken all the axes but not all the plot limes this mechanism liberal use of save/unsave is easy and robust. It also prevents axes coming out as dashed red lines. It can also be useful if you jump around between subpages.
Of course, it's easy to write one's own wrappers or hold what you want in some struct, but then you need to do this, pass such a struct around ( or worse declare it global) or whatever. I assume all this information is remembered by pllplot in the stream or somewhere so this is just a question of addind the user-visible api. I respect the plplot desire to keep the api minimalisitc, so there is always a trade off here. Hence this email to illustrate how "get" routines, and save/ unsave are used. Regards Steve ----------- Steve Schwartz Space and Atmospheric Physics Imperial College London Tel 020 7594 7660 On 24 Jul 2009, at 02:05, "Hazen Babcock" <hbabc...@mac.com> wrote: > Alain Baeckeroot wrote: >> Dear all >> >> i 'd like to create my function for drawing the legend of graph, >> i want to modify line width for the legend, and font color and reset >> to previous value before exiting the legend function. so i need to >> know >> current line width, line color >> >> I found no function that gives me this informations (no plg...) >> Am i wrong ? >> how could i get this information ? > > I believe you are correct. Could you describe the problem that you are > facing a little more? In PLplot the defaults are just whatever they > were > last set to. I think that they start at plwid(1) with plcol0(0) as the > background color and plcol0(1) as the foreground color. > > -Hazen > > > --- > --- > --- > --------------------------------------------------------------------- > _______________________________________________ > Plplot-general mailing list > Plplot-general@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-general ------------------------------------------------------------------------------ _______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general