The ability mentioned in the subject line is an unpublished PLplot
feature that I have used recently for the -colorbar subset of C
example 33.  Since this is an unpublished feature (the documentation
says plscolbg should be called before plinit), I have tried example 33
(using the -colorbar option) for a number of different devices.  All
the modern devices I have tried (xcairo, qt_widget, psc, wxwidgets,
svg) work fine with the specified different background colour starting
on the first page of the -colorbar pages (the fifth page of example 33
if the -colorbar example option is used), but -dev xwin (and -dev tk
which uses -dev xwin code) do not work properly.  For those devices
the -colorbar pages of example 33 initially have black backgrounds
rather than the specified (unsaturated green) background. However, you
get the correct background if you resize the plot.  Also, if you
attempt to resize page 4 the initially correct black background
for that page is turned into the background colour appropriate
to page 5.

pladv(0) is largely equivalent to a call to pleop() followed by a call
to plbop().  Thus, I suspect the trouble might be that -dev xwin handles end
of page and beginning of page with a different style than the modern
devices, e.g., by not setting the background colour properly at the
correct place. Could somebody with knowledge of -dev xwin take a look
to see if it can be brought into line with the style of modern devices
with regard to page and background colour handling?

The ability to set different background colours for different pages of
a multi-page plot is well worth publicizing since the ability is quite
useful, but I would like to hold off on changing the plscolbg
documentation until we completely understand (and fix) why -dev xwin
(and -dev tk) don't respond the same way as modern devices to a call
to plscolbg (just before a call to pladv(0) in the example 33 case).
So I hope somebody with knowledge of -dev xwin will take on this
issue.

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); PLplot scientific plotting software
package (plplot.org); 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
__________________________

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to