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

Home » Public Forums » archive » Re: Help with fsc_plot
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: Help with fsc_plot [message #73860] Wed, 08 December 2010 05:30 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
chris writes:

> at first: DAVID, you're updated FSC-Routines are eye catching!
> at second: now to the problems :)
>
> If I would have 2 data sets, let's say:
>
> a = findgen(512)
> b = a+5.
>
> ...and I would like to plot them by your routine into one window:
> multi=!p.multi
> !p.multi=[0,1,2]
> fsc_plot,a,/nodata,xrange=[0,512]
> fsc_plot,a,xrange=[0,512],color='red'
> fsc_plot,b,/nodata,xrange=[0,512]
> fsc_plot,b,xrange=[0,512],color='blue'
> !p.multi=multi
>
> ...then the x-Axis (it ranges from 0:600) is not correctly scaled. How
> can I fix this?

Well, like you always do. By disallowing automatic
axis scaling. Set XSTYLE=1. Not really sure I am
understanding your question here. :-(

I would do this like this.

!p.multi=[0,1,2]
fsc_plot,a,xrange=[0,512],color='red', xstyle=1
fsc_plot,b,xrange=[0,512],color='blue', xstyle=1
!p.multi=0

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Help with fsc_plot [message #73958 is a reply to message #73860] Wed, 08 December 2010 05:49 Go to previous message
rogass is currently offline  rogass
Messages: 200
Registered: April 2008
Senior Member
On 8 Dez., 14:30, David Fanning <n...@dfanning.com> wrote:
> chris writes:
>> at first: DAVID, you're updated FSC-Routines are eye catching!
>> at second: now to the problems :)
>
>> If I would have 2 data sets, let's say:
>
>> a = findgen(512)
>> b = a+5.
>
>> ...and I would like to plot them by your routine into one window:
>> multi=!p.multi
>> !p.multi=[0,1,2]
>> fsc_plot,a,/nodata,xrange=[0,512]
>> fsc_plot,a,xrange=[0,512],color='red'
>> fsc_plot,b,/nodata,xrange=[0,512]
>> fsc_plot,b,xrange=[0,512],color='blue'
>> !p.multi=multi
>
>> ...then the x-Axis (it ranges from 0:600) is not correctly scaled. How
>> can I fix this?
>
> Well, like you always do. By disallowing automatic
> axis scaling. Set XSTYLE=1. Not really sure I am
> understanding your question here. :-(
>
> I would do this like this.
>
>    !p.multi=[0,1,2]
>    fsc_plot,a,xrange=[0,512],color='red', xstyle=1
>    fsc_plot,b,xrange=[0,512],color='blue', xstyle=1
>    !p.multi=0
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Super! Thank you!

How can I prevent a subtitle of touching the lower plot window border?

Cheers

CR
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Convert animated GIF to MPEG
Next Topic: Re: Stupid question regarding BUFFER keyword in NG output.....

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

Current Time: Fri Oct 10 04:44:42 PDT 2025

Total time taken to generate the page: 0.23991 seconds