I was thinking I should write some documentation and an FAQ on the viewport trick, and so checked to see what demo scripts and so forth are already around. Try this, which is based on the first example in multi_variable_demo.jnl
yes? use levitus_climatology
The script right_axis_plot already makes a red line plot and a labeled axis on the right. Just changing pen 0 to 3 makes the label and the axis in red. So if red is the color you want, this is the quickest answer.
The viewport thing is very flexible. Because it's so flexible, it means the person making the script has to make sure the lines drawn on the plot really make sense to look at together. You could draw a temperature vs time plot in the first viewport, then a salinity vs longitude plot in the second one, and they'd appear in the same plot space, but without the horizontal axis being labeled on the second plot the person seeing it wouldn't know what they were looking at.
On 12/4/2013 2:36 PM, Luke M wrote: