Hello,
I've just (also) added a function called plptex3 to the PLplot API,
which is the 3D equivalent of plptex. It take 3 sets of coordinate,
(1) x,y,z position of the text, (2) dx, dy, dz of the text baseline
and (3) dx, dy, dz of the line which the text should be "vertically"
parallel to. If all dx = dy = dz = 0 for (3), then the text is
rotated to be parallel to the baseline but is not sheared.
The following example demonstrates this function:
// plptex3 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);
plcol0(1);
plbox3( "bnstu", "X", 0.0, 0,
"bnstu", "Y", 0.0, 0,
"bcdmnstvu", "Z", 0.0, 0);
plptex3(-1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, "hello
world");
plptex3(-1.0, 1.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, "hello
world");
plend();
}
-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