[Thread Prev][Thread Next][Index]

Re: [ferret_users] Strange behaviour of ANNOTATE with non ascii fonts



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

On 12/3/2019 2:48 AM, Olivier Marti wrote:
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 TEXT
SET WINDOW/XPIXEL=800/ASPECT=0.7

! This text is not visible
SET VIEW FULL
ANNOTATE/NORM/XPOS=0.5/YPOS=0.5/HALIGN=0/VALIGN=0/ANGLE=0/SIZE=0.2 "Non visible text"

SET VIEW UL
PLOT I[I=1:20]

! After a first plot
! This text is visible, and correctly placed
SET VIEW FULL
ANNOTATE/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 window
SET TEXT/FONT=calibri
ANNOTATE/NORM/XPOS=0.5/YPOS=0.5/HALIGN=0/VALIGN=0/ANGLE=0/SIZE=0.2 "Visible, wrongly placed, calibri text"



— 
Olivier Marti  - LSCE Bât 714 p. 1049
Tel : +33 1 69 08 77 27
mailto:olivier.marti@xxxxxxxxxxxx



[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement