PLplot's underlining and overlining capability is controlled
by the #- and #+ escape sequences in text.  To see how this
works, apply the following patch to example 1.

Index: examples/c/x01c.c
===================================================================
--- examples/c/x01c.c   (revision 12482)
+++ examples/c/x01c.c   (working copy)
@@ -253,7 +253,7 @@
      plcol0( 1 );
      plenv( xmin, xmax, ymin, ymax, 0, 0 );
      plcol0( 2 );
-    pllab( "(x)", "(y)", "#frPLplot Example 1 - y=x#u2" );
+    pllab( "(x)", "(y)", "#fr#-PLplot#- #+Example 1 - y=x#u2#+" );

  // Plot the data points

If you run examples/c/x01c -dev xwin the results are not too bad
although the underline cuts through the descender part of the "p" in
"Plplot" so a smarter algorithm for deciding on the vertical offset of
the underline and overline should be implemented. Also, the
superscript mode affects the vertical offset of the overline mode just
at the superscript and not for the whole overline.  Instead the
"smart" algorithm should take account of superscripts and subscripts
to decide the overall vertical offset for the entire underline or
overline.

The situation is much worse for modern device drivers such as wxwidgets,
qt, and cairo.  Underline mode works (with the same limitations
as for -dev xwin) for the wxwidgets "basic" device,
but overline mode is not implemented for that device.  And underline and
overline mode do not work at all for the wxwidgets "wxGC" device and the
qt and cairo devices.

We need volunteers to step forward to make the #- and #+ text escape
sequences work correctly for your favorite devices.

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
__________________________

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to