[Thread Prev][Thread Next][Index]

Re: [ferret_users] line specimen in right_axis_plot



Hi Hartmut,
You're exactly right that the trouble is the working of the ALINE command when you have a time axis.  ALINE is the used to draw the line specimen, and it doesn't work well when we've got a time axis.

There's another way to get this kind of overlay plot, making two viewports which are the same size and shape. This method is described in this message from the archives; see if it helps you.  One needs to be careful to adjust the automatic lables so as not to have, for instance, two titles across the bottom of the plot on top of each other.

http://ferret.pmel.noaa.gov/Ferret/Mail_Archives/fu_2005/msg00807.html

Another quick example:
yes? use coads
yes? set reg/x=180/y=0/t=1-jan-1986:1-jan-1989
yes? def view/x=0:1/y=0:1 view1
yes? def view/x=0:1/y=0:1 view2

yes? set view view1
yes? plot/axes=1,1,1,0/title="SST (black) and SPEH (red)" sst

yes? set view view2
yes? plot/axes=1,1,0,1/nokey/color=red/title=" " speh
Ansley

Hartmut Frenzel wrote:
Hello,

I'm using left_axis_plot and right_axis_plot to plot two variables in one viewport. I don't get the line specimen on the right axis, as has been reported before:
http://ferret.pmel.noaa.gov/Ferret/Mail_Archives/fu_2002/msg00551.html
http://ferret.pmel.noaa.gov/Ferret/Mail_Archives/fu_2002/msg00560.html (under P.S. in the second message)

Unfortunately, there was no follow-up answer to either message.
Curiously enough, it works fine in the multi_variable_demo script.
One possible cause may be that it works correctly only if the x axis is a spatial coordinate, but not if it's time. For instance:

use coads_climatology
go left_axis_plot sst[i=67,j=62]
go right_axis_plot airt[i=67,j=62]

-> The red line is present, but in a wrong place (on top of the left axis). Maybe in my plots it's outside of the plot?


Any insight?

Thanks!
-- Hartmut

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement