On 2013-05-07 08:50-0700 phil rosenberg wrote: > Hi > I've spent a little time again working on this wxwidgets bug. I have pretty > much done the bulk of it now. However, I had a question that people on the > list might be able to help with. > > It seems that the wxWidget driver is set up to enable it to receive col0, > col1 and width commands ahead of initialisation of the driver. Is this > actually possible? I thought that the initialisation should be the first > thing to be done? I'd like to remove some of this code if possible as it adds > additional complications to dealing with changing page that are a pain to > work around so I thought I'd check if they were necessary.
I am not familiar with the innermost details of our driver paradigm, but I do know that command-line options are parsed before plinit is called to do the rest of the device driver initialization. So if you look in src/plargs.c, you will see that the -bg option corresponds to a call to plscolbga before plinit is called. See also, http://plplot.sourceforge.net/docbook-manual/plplot-html-5.9.9/color.html where it is emphasized that plscolbg (a similar call to plscolbga but with alpha = 1 for completely opaque) must be called before plinit. Thus, there are definitely bits of the driver initialization (such as background colour) that are meant to be done before plinit is called. Thus, I am pretty sure that what you observed above for -dev wxwidgets and colour and width commands implemented before plinit is called is the right thing to do and should not be changed. To confirm that, I suggest you also look at a well-maintained but fairly simple (since there are no external dependencies) device driver such as -dev svg to see what it does with regard to col0, col1 and width commands. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
