[Thread Prev][Thread Next][Index]

Re: [ferret_users] Draw line in x-y-plot



Dear all,

thanks to all of you. My error was the incorrect combination of lon and lat in the tuples. It now works.

Thanks,
	Arne

Ansley Manke schrieb:
Hi -
What you're trying will work, you just need need to give two lists, with the xpoints and ypoints, with a comma between, and just let them be simple values that express the locations in the units of the coordinates of the grid you're using (here, in degrees west, and degrees north.)

    yes? set data levitus_climatology
    yes? shade temp[k=1]

    yes? plot/vs/line/over/color=black/nolabel  {110,10}, {10,40}

The plot as it's presented by default breaks at 20 west, so it might be better to locate it differently in X to begin with

    yes? set data levitus_climatology
    yes? shade/x=0:360 temp[k=1]

    yes? plot/vs/line/over/color=black/nolabel  {110,10}, {10,40}

    ! and you can plot any number of locations this way, e.g.
    yes? plot/vs/line/over/color=purple/nolabel {110,210,215}, {20,30,-30}

The plot as it's presented by default breaks at 20 west, so it might be better and, while the ALINE command mentioned in the last message does work, but it doesn't work well on plots involving time. Just a couple of resources here for that,
http://ferret.pmel.noaa.gov/FERRET_17sep07/FAQ/custom_plots/time_series_symbol_overlay.html
http://ferret.pmel.noaa.gov/FERRET_17sep07/FAQ/custom_plots/time_series_overlay.html


Arne Biastoch wrote:
Hi Ferreters,

just a quick and (I assume) simple question that struggles me.

Suppose I have a x-y-plot, e.g.

yes? set data levitus_climatology
yes? shade temp[k=1]

How can I draw a single line, e.g. from 10N/110W to 40N/10W?
I tried:

yes? plot/vs/line/over/color=black/nolabel {110W,10N}{10W,40N}
 **ERROR: command syntax: {110W,10N}{10W,40N}
          {110W,10N} before {10W,40N} is illegal

but always get an error.

Thanks,
	Arne


--

Dr. Arne Biastoch

Leibniz-Institut für Meereswissenschaften (IFM-GEOMAR)
IFM-GEOMAR
FB1 Climate Dynamics        phone: ++49 431 600-4013
Duesternbrooker Weg 20      fax  : ++49 431 600-4012
24105 Kiel, Germany         email: abiastoch@xxxxxxxxxxxxx

http://www.ifm-geomar.de/~abiastoch


[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement