Re: Help with fsc_plot [message #73860] |
Wed, 08 December 2010 05:30  |
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.")
|
|
|