[Thread Prev][Thread Next][Index]

Re: [ferret_users] shaded plot



Hi Fisseh,

That's fine but if you already have your data then you mightn't need to define axis rather use the data axis (or grid)

Here is an example.
use etopo20
sh d/f            ! we will use the grid GTE1 below, corresponing axis also works (find axis name by: sh grid GTE1 )
let ht=rose[x=85:90@ave,y=25:35]
plot ht
go fill_between poly/ov/nolab/pal= grey ht gte1          ! if final argument is omitted the shade is between "data" and 0

use: go/help fill_between for more examples
 
Jagadish

From: FISSEHA G. BERHANE <fishcivilmu@xxxxxxxxx>
To: jagadish karmacharya <j_karmacharya@xxxxxxxxx>
Cc: ferret <ferret_users@xxxxxxxx>
Sent: Saturday, February 18, 2012 4:33 PM
Subject: Re: [ferret_users] shaded plot

Hi Jagadish,

Thanks for the tip. To summarize what I did:

define axis/x =-15:50:0.03333 xgtopo  ! Define axis along my x-section
let height1 = ht[x=-15:50,y=-8:13@ave, gx=xgtopo]
let height2 =height1*0
GO fill_between POLY/OVER/NOLABEL/PALETTE=gray height1 xgtopo height2

plot/ov/color =black height1

Then it gives the attached figure.
Best,



Fisseha Berhane
PhD student
Johns Hopkins University
Baltimore, Maryland

--- On Sat, 2/18/12, jagadish karmacharya <j_karmacharya@xxxxxxxxx> wrote:

From: jagadish karmacharya <j_karmacharya@xxxxxxxxx>
Subject: Re: [ferret_users] shaded plot
To: "FISSEHA G. BERHANE" <fishcivilmu@xxxxxxxxx>
Cc: "ferret" <ferret_users@xxxxxxxx>
Date: Saturday, February 18, 2012, 6:23 AM

Hi,

Is this useful?

http://ferret.pmel.noaa.gov/Ferret/faq/fill-between-two-curves
 
Jagadish



From: FISSEHA G. BERHANE <fishcivilmu@xxxxxxxxx>
To: ferret <ferret_users@xxxxxxxx>
Sent: Saturday, February 18, 2012 2:33 AM
Subject: [ferret_users] shaded plot

Hi dear ferreters,

I am looking at topography along a x-section to overlay over wind vectors which are interpolated below the surface so as to mask the winds below the surface out. My elevation along the topography is one dimensional, just time series of elevation values along the cross-section. When I use shade it gives error message that it is not 2-D and when I use plot, it does not shade it. In the attached figure, I want the region below the surface to be shaded.
Your help highly appreciated

Fisseha Berhane
PhD student
Johns Hopkins University
Baltimore, Maryland





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

Privacy Policy | Disclaimer | Accessibility Statement