Hi, Our upcoming Ferret release will make the labeling and drawing overlays on Time plots work much better. It's always been necessary to do lots of work to overlay on a time-axis plot, but this is much improved with the Ferret v7. Drawing the color-key lines does not work correctly prior to Ferret v7.The "ANNOTATE" command, which is in the current Ferret release, v696, also makes adding labels to the plot much easier. ... yes? plot/nolabel/color=purple/thick pr1 yes? plot/nolabel/color=green/thick pr2 ! (lines 2 and 3 not drawn above) yes? plot/nolabel/color=red/thick pr3 ! Set up time locations for locating key and labels yes? LET t0 = tt[T="10-DEC-2009"@itp] yes? LET t1 = tt[T="15-NOV-2009"@itp] yes? LET t2 = tt[T="15-NOV-2009"@itp] ! Set Y locations for key lines, as a fraction the range of the Y axis that was plotted. yes? let y1 = (($yaxis_max) - ($yaxis_min))*0.9 !-> DEFINE VARIABLE y1 = (320.0000 - 0.000000)*0.9 yes? let y2 = (($yaxis_max) - ($yaxis_min))*0.85 !-> DEFINE VARIABLE y2 = (320.0000 - 0.000000)*0.85 yes? let y3 = (($yaxis_max) - ($yaxis_min))*0.8 !-> DEFINE VARIABLE y3 = (320.0000 - 0.000000)*0.8 ! Draw legend lines. The coordinates are in the same units as the line plot. yes? plot/over/vs/nolabel/line/color=purple/thick {`t0`,`t1`},{`y1`,`y1`} !-> plot/over/vs/nolabel/line/color=purple/thick {262464,261864},{288,288} yes? plot/over/vs/nolabel/line/color=green/thick {`t0`,`t1`},{`y2`,`y2`} !-> plot/over/vs/nolabel/line/color=green/thick {262464,261864},{272,272} yes? plot/over/vs/nolabel/line/color=red/thick {`t0`,`t1`},{`y3`,`y3`} !-> plot/over/vs/nolabel/line/color=red/thick {262464,261864},{256,256} ! Now use "ANNOTATE/NORM" to add labels. /NORM locates the labels relative to ! the box made by the plot axes. yes? annotate/norm/xpos=0.995/ypos=0.8/halign=1/valign=0/siz=0.1 @ASPCC yes? annotate/norm/xpos=0.995/ypos=0.85/halign=1/valign=0/siz=0.1 @ASCRU yes? annotate/norm/xpos=0.995/ypos=0.9/halign=1/valign=0/siz=0.1 @ASGME ! Add a y-axis label yes? annotate/norm/xpos=-0.08/ypos=0.5/halign=0/siz=0.15/angle=90 "@ASmm/day" On 6/30/2016 11:56 AM, Ansley C. Manke
wrote:
|