Hello,
I've just added a function called plmtex3 to the PLplot API.
Essentially it is the 3D equivalent of plmtex, though the side
argument is a bit different. You specify an axis with one of "x",
"y", "z", then whether you want the label on the primary/secondary
axis with "p" or "s", and if you want it to be perpendicular to the
axis you add "v".
For the z-axis, primary is the leftmost axis and secondary is the
rightmost axis. For the x & y axis it will depend on the orientation
of the plot.
Suggestions? The following example demonstrates the function:
// plmtex3 testing program
#include <stdio.h>
#include "plplot/plplot.h"
int main(int argc, char *argv[])
{
plinit();
pladv(0);
plvpor(0.0, 1.0, 0.0, 0.9);
plwind(-1.0, 1.0, -0.9, 1.1);
plw3d(1.0, 1.0, 1.0, -1.5, 1.5, -0.5, 1.5, 0.0, 2.0, 40.0, 60.0 +
270.0);
plcol0(1);
plbox3( "bnst", "", 0.0, 0,
"bnst", "", 0.0, 0,
"bcdmnstv", "", 0.0, 0);
plmtex3("xpv", 2.5, 0.5, 0.5, "one");
plmtex3("xs", 2.5, 0.5, 0.5, "two");
plmtex3("ypv", 2.5, 0.5, 0.5, "three");
plmtex3("ys", 2.5, 0.5, 0.5, "------- four ------");
plmtex3("zpv", 2.5, 0.5, 0.5, "five");
plmtex3("zs", 2.5, 0.5, 0.5, "six");
plend();
}
This also shows up either a bug in the function or in the xwindows
driver. The "four" label is not drawn parallel to the axis for the
xwindows driver, but it is drawn correctly for the aquaterm driver
and the png driver.
-Hazen
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel