[Thread Prev][Thread Next][Index]

Re: [ferret_users] How to make a plot with 2 Y axis



The solution is to define two viewports with the exact same parameters : same location, same margins.

I can send you a go file that duplicate a viewport.

Olivier

Le 8 nov. 2021 à 15:30, Friedlingstein, Pierre <P.Friedlingstein@xxxxxxxxxxxx> a écrit :

Hi all,
I’m trying to make a plot with 2 time series, each on a separate Y axis (one on the left side and one on the right side of the plot).
I’ve tried left_axis_plot and right_axis_plot.
also tried multi_yaxis_plot1 and multi_yaxis_overlay.
 
Nothing really works well as I can’t find the way to get the 2nd Y axis at the right side of my plot. It’s either on the left of the main axis  (using “-“ for  multi_yaxis_overlay), or it’s just at the right of the left plot, ie in the middle of the figure ! (“+” for  multi_yaxis_overlay, see screenshot)
 
Also I don’t know how to control the format of the axis anymore (ppl xfor, yfor, etc…).
 
I can send my data but essentially, it’s two time series. For example:
DEFINE AXIS/T=2021:2030:1/UNIT=year tax
DEFINE GRID/T=tax my_grid
SET GRID my_grid
Var1 = 500 - 50*(T-2020)
Var2 = 25/(10-(T-2020))
 
Thanks for any help.
Pierre

— 
Olivier Marti
LSCE Bât 714 p. 1049
MERMAID Team
Normal situation :  +33 1 69 08 77 27 
Corona lockdown  :  +33 6 45 36 43 74

Attachment: smime.p7s
Description: S/MIME cryptographic signature


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

Privacy Policy | Disclaimer | Accessibility Statement