Hi Martin,
The ANNOTATE command works only after a plot has been drawn. It
locates the text relative to the plot axes. SET WINDOW and SET
VIEW define a drawing space but a plot command is need to set up
the axes. (It talks to the graphics commands just the way PPL
LABEL does.) To make a blank plot with text only you could draw a
plot with nothing on it, such as
yes? plot/noax/nolab/hlim=-1:1/vlim=-1:1 {-100,-100}, {100,100}
We'll add this detail to the documentation.
-Ansley
Hi,
do you observe the same problem with location of annotate ?
Olivier
NOTE : PyFerret v7.5 (optimized) installed with anaconda (Python 3.7.3) - Darwin 17.7.0 - MacOS X 10.14.6 Mojave
CANCEL TEXTSET WINDOW/XPIXEL=800/ASPECT=0.7
! This text is not visibleSET VIEW FULLANNOTATE/NORM/XPOS=0.5/YPOS=0.5/HALIGN=0/VALIGN=0/ANGLE=0/SIZE=0.2 "Non visible text"
SET VIEW ULPLOT I[I=1:20]
! After a first plot! This text is visible, and correctly placedSET VIEW FULLANNOTATE/NORM/XPOS=0.5/YPOS=0.5/HALIGN=0/VALIGN=0/ANGLE=0/SIZE=0.2 "Visible, centered text"
! Changing font! This text is visible, but not in the middle of the windowSET TEXT/FONT=calibriANNOTATE/NORM/XPOS=0.5/YPOS=0.5/HALIGN=0/VALIGN=0/ANGLE=0/SIZE=0.2 "Visible, wrongly placed, calibri text"