Pxp: a unified plotting library in X11 and Postscript

last update 2002/6/24 * new version Pxp2002 released!

What is Pxp?

Pxp is an abribiation of "Plot library for X11 and Postscript printer", which make the same C-language function to plot on X11 window and print in a PostScript printer. You can make an application which show some drawings without considering about output devices. You can easily change between X11 output and PostScript output.
Pxp uses functions of Xt(X toolkit libirary) and Xm(Motif widget library) for X11 drawing. Pxp minimize the differences between X11 and PostScript, although some of them are left. (for example, size different characters are treated as different fonts in X11 but not in PostScript.) In most cases appearance between X11 and PostScript is the same.

With which machine can be used?

We have already confirmed running on NEWS-OS4.2R, NEWS-OS4.2C, Solaris2.0+Motif1.2, Linux2.0.x+lesstif0.86.5., Linux2.2.13+LessTif0.89.9.
Printout is written in PostScrip Level 2 version3 EPS. Color printout is also available.

How to write a graph with Pxp?

Pxp uses a coordinate on screen/paper position in centimeter scale. It is good for drawing if you want to plot in exact scale.
On the other hand we recommend use PxpG library when you want to plot a graph of relation between two physical quantities. PxpG is an extended library of Pxp. You can easily change the apparent scale because PxpG uses a coordinate defined by yourself.

How to get Pxp?

Here is a fullset of latest UltraSTAR in tar+gz format. The older verision is here. Let's try and download it. Please let me know, after your installation. Binary files in the directories Pxplib/lib were made in TuboLinux6.0J (with LessTif). To avoid some troubles please remove these binary files using
make clean
before try to make.
Description about the lates version is shown here. Quick instruction for installation is shown here.