On 2009-04-04 06:48+0200 Alain Baeckeroot wrote:

> Hi
>
> I use pbm for fast drawing of a scatter plot with
> several 10 000 points.
>
> Some non ascii chars disappear from the labels.
> The label:      "Température (°C)"
> is displayed:   "Temp rature ( C)"
>
> is it a problem in my configuration (fonts ?) or should i fill
> a bug report on sf?

Hi Alain:

The ancient pbm device only supports Hershey fonts, i.e., it has no unicode
capability.  Try one of the modern cairo or qt devices instead. Both those
families of devices support unicode.  So if you have a unicode aware editor,
simply type in what you want for labels in any language or script, and the
cairo or qt devices do the rest.  To see what is possible with unicode look
at examples 23, 24 and 26.  The first one uses escape sequences to generate
unicode, but the last two use unicode (UTF8) strings directly.

Another issue is -dev pbm produces portable pixmap results which most people
don't like since it is an inefficient format.  However, if you have a reason
why you would like to stick to that format (simplicity?), then I suggest you
try -dev ppmqt (the ppm device that is part of the qt family).  Otherwise, I
would recommend a format like Postscript (-dev pscairo or -dev epsqt), or
PNG (-dev pngcairo or -dev pngqt).  In total there are 7 cairo devices and 9
qt devices so those two device driver families cover a lot of different
formats.

BTW, the qt device driver is completely new and is only available in the svn
trunk version of PLplot (which is a fairly stable version that we don't
expect to change too much between now and when we officially release it
[roughly a month from now]).  You will need the development packages of Qt4
installed on your computer before you can build or use the qt devices.
Similarly, you will need the development versions of the pango and cairo
stack of libraries installed on your computer before you can build or use
the cairo devices.  On Linux such dependencies are not too much of an issue
since Qt4 is the fundamentel basis of the KDE desktop and the pango/cairo
stack is part of GTK+ which is the fundamental basis of the GNOME desktop.

I have recently done a lot of testing and comparison of the qt devices and
cairo devices. I am satisfied with the high-quality results that are
produced by both families of device drivers.

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
__________________________

------------------------------------------------------------------------------
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to