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 
Return to the default flat view Create a new topic Submit Reply
Re: Help with fsc_plot [message #73860] Wed, 08 December 2010 05:30 Go to previous 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.")
[Message index]
 
Read Message
Read Message
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 11:59:28 PDT 2025

Total time taken to generate the page: 0.71910 seconds