comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: secondary y-axis won't plot on right hand side of graph
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: secondary y-axis won't plot on right hand side of graph [message #74920] Tue, 08 February 2011 21:24
Meredith Pind is currently offline  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 Go to previous message
penteado is currently offline  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/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: v8 plot challenge
Next Topic: Re: WShow Prayers Answered!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:51:02 PDT 2025

Total time taken to generate the page: 0.05401 seconds