Hi Ferreters -
Some years ago there was discussion of how to draw legend lines on plots. The problem is relatively easy for many cases (see "legline" in the mail archives), but if either there is a time axis or a z- positive-down axis, the use of PPL ALINE to draw the line often fails. In these cases and others it may be desirable to specify the legend positions in NOUSER units. Emilie Vanvyve and I worked on such a script (archives of 12 Dec 2003), but it still used ALINE. It turns out to be simple to revise it using PLOT/VS instead of ALINE, and this is much more robust. It is attached (legline_nou_pv.go).
One note: the script converts the user-input NOUSER units to USER units for the PLOT/VS command. This bases its zero for x on the smallest value on the x-axis ($xaxis_min), which might not really be the start of the axis (e.g., in the case of a time axis where the values begin in the middle of the month, but Ferret will start the plot on the first day of the month). In that case it is essential to explicitly specify the time range for the plot on which the legend will go, beginning on the first day of the month, even if the data does not exist there. I don't know how to reliably find the value of the real left edge of the plot in USER units!
Billy K
<legline_nou_pv.go>
Attachment:
legline_nou_pv.go
Description: Binary data