[Thread Prev][Thread Next][Index]

Re: [ferret_users] horizontal line on time series



Its a good suggestion from Afwande. 

but we can get the line at any point in this way also

plot/nolab/color=blue/thick/I=1/TITLE="time function 1"/VLIMITS=-4.0:4.0:0.5 eoftime
plot/ov/nolab (eoftime*0) + n

`n` is the number where you want to plot the line. suppose n=1 then the horizontal line will be at 1. or n=0.5 line line will be at 0.5 or n= -2 line will be at -2

cheers


On Thu, Jun 8, 2017 at 7:26 AM, afwande juliet <afwandej965@xxxxxxxxx> wrote:
Try this command and try playing with numbers to get it where you want it

plot/nolab/color=blue/thick/I=1/TITLE="time function 1"/VLIMITS=-4.0:4.0:0.5 eoftime
let xpts = {1000,1950}
let ypts = {0,0}
plot/vs/over/line/color=black/nolab xpts,ypts

On Wed, Jun 7, 2017 at 11:33 PM, Molulaqhooa Maoyi <molulaqhooa.maoyi@xxxxxxxxx> wrote:
Hi Ferreters

I would like to overlay a horizontal line on a time series at y=0  (see timeseries.png) however, this is being more difficult than I could have ever imagined.

Below is my script that generates a time series.

USE JFM_NCEP.nc
USE JFM_20th.nc
USE JFM_ERAINT.nc

!  Compute and save the spatial EOF functions.  These have the same units
!  as the data.

LET eoftime = EOFSVD_TFUNC(hgt[X=10E:43E,Y=0:33S,k=12,d=1])*-1
LET eoftime2 = EOFSVD_TFUNC(hgt[X=10E:43E,Y=0:33S,k=14,d=2])*-1
LET eoftime3 = EOFSVD_TFUNC(hgt[X=10E:43E,Y=0:33S,d=3])*-1



!go multi_view   [rows],[columns],[xsize],[xstart],[xgap],[ysize],[ystart],[ygap],[PRefix] 
   go multi_view   3,      1,       0.5,   0.1,   0.15,   0.25,   0.1,    0.07  
 SET WINDOW/ASPECT = .5

set view V11
      PPL SHASET RESET
      plot/nolab/color=blue/thick/I=1/TITLE="time function 1"/VLIMITS=-4.0:4.0:0.5 eoftime




--
"Try and Fail than to Fail to Try" - Israel Maoyi




--


REGARDS

Saurabh Rathore
Research Scholar (PhD.)
Centre For Oceans, Rivers, Atmosphere & Land Science Technology
Indian Institute Of Technology, Kharagpur
contact :- 91- 8345984434

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

Privacy Policy | Disclaimer | Accessibility Statement