Re: secondary y-axis won't plot on right hand side of graph [message #74920] |
Tue, 08 February 2011 21:24 |
Meredith Pind
Messages: 13 Registered: February 2011
|
Junior Member |
|
|
On Feb 8, 10:09 pm, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Feb 9, 1:35 am, Meredith Pind <meredith.p...@gmail.com> wrote:
>
>> I am trying to plot a secondary y-axis on my graph, but it keeps
>> ending up to the left of the original y-axis and does not plot the
>> lines of the secondary x or y axis to close the box around the graph.
>> The tickmarks and values are also facing in the same direction as the
>> primary axis The script I have written is as follows:
>
>> p4 = plot(T, axis_style = 1, color = 'purple', ytitle = 'Temperature')
>
>> p5 = plot(albedo, /current, axis_style =0, tickdir = 1, color =
>> 'green')
>
>> p6 = axis('y', target = p5, textpos = 1, title = 'Albedo')
>
> See what I wrote at
>
> http://groups.google.com/group/comp.lang.idl-pvwave/browse_t hread/thr...
Worked like a charm! Thank you!!
|
|
|
Re: secondary y-axis won't plot on right hand side of graph [message #74922 is a reply to message #74920] |
Tue, 08 February 2011 20:09  |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Feb 9, 1:35 am, Meredith Pind <meredith.p...@gmail.com> wrote:
> I am trying to plot a secondary y-axis on my graph, but it keeps
> ending up to the left of the original y-axis and does not plot the
> lines of the secondary x or y axis to close the box around the graph.
> The tickmarks and values are also facing in the same direction as the
> primary axis The script I have written is as follows:
>
> p4 = plot(T, axis_style = 1, color = 'purple', ytitle = 'Temperature')
>
> p5 = plot(albedo, /current, axis_style =0, tickdir = 1, color =
> 'green')
>
> p6 = axis('y', target = p5, textpos = 1, title = 'Albedo')
See what I wrote at
http://groups.google.com/group/comp.lang.idl-pvwave/browse_t hread/thread/8eda377968cf1822/
|
|
|