Robert,
When I run the following code, I get what I think you want:
$w = pgwin(xw,size=>7);
$data = rvals(25,25);
$w->imag($data);
$w->hold;
$w->env(0,1,0,1,{PlotPosition=>[0.5,1,0.5,1],Axis=>'Empty'});
$w->text("Some text",0.25,0.5,{Justification=>0.5});
Without seeing your full $opttextwin it's hard to say, but maybe the
above will give you somewhere to start. I did notice that in $optflux
you specify an axis option 'f', which I don't see documented anywhere.
Derek
Robert Cumming wrote:
I want to write text on a graph I've made, but I want to change
coordinates so it's easy to place the text: say at (0.5,0.5) rather
than (2500, 1.3E-17).
So I'm doing something like this:
$optflux={CHARSIZE => 0.25,LINEWIDTH => 3,
PlotPosition=>[$x1,$x2,$y1,$y2],Axis=>['BCFST','BCFNSTV']};
env($v1,$v2,$f1,$f2,$optflux); # window
hold;
line ($vel,$flux,$optpoints); # plot stuff
hold;
env(0,1,0,1,$opttextwin); # define
text ("$ycorr",0.7,0.62,$opttext);
Now I thought that having Axis=>'EMPTY' in $opttextwin would do the
trick - no tickmarks or box or anything. But instead it erases the
previous axes as defined in $optflux. Any other value of Axis in
$opttextwin and I get two sets of tickmarks.
I think I must be missing something very basic here. Can anybody see
what it is?
I've checked the manuals and the book and not become any the wiser.
/Robert
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl