Help with fsc_plot [message #73861] |
Wed, 08 December 2010 05:24  |
rogass
Messages: 200 Registered: April 2008
|
Senior Member |
|
|
Hi,
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?
Thanks in advance
CR
|
|
|
Re: Help with fsc_plot [message #73946 is a reply to message #73861] |
Wed, 08 December 2010 08:34  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Chris writes:
> Funny thing. This newsgroup is like a blog for you :)
No, it's like my life. :-)
Let this be a warning to all young programmers everywhere.
This is how you end up if you spend all day working in
your pajamas with only the dogs for company. :-(
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 #73947 is a reply to message #73861] |
Wed, 08 December 2010 08:20  |
rogass
Messages: 200 Registered: April 2008
|
Senior Member |
|
|
On 8 Dez., 17:07, David Fanning <n...@dfanning.com> wrote:
> David Fanning writes:
>> Oh, the hell with it! I'll just add a WINDOW keyword
>> to all of these commands so that if you want to see
>> a plot, contour, surface, etc in a resizeable graphics
>> window, you just set the /WINDOW keyword on the command.
>> Check back in about a half hour. :-)
>
> OK, done. Set the Window keyword if you want to display
> these graphics commands in a resizable graphics window.
>
> http://www.dfanning.com/programs/fsc_plot.pro
> http://www.dfanning.com/programs/fsc_contour.pro
> http://www.dfanning.com/programs/fsc_surf.pro
>
> 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.")
Funny thing. This newsgroup is like a blog for you :) Thank you again
for the good work. I fear the day you leave the IDL world....
KING regards
CR
|
|
|
Re: Help with fsc_plot [message #73949 is a reply to message #73861] |
Wed, 08 December 2010 08:07  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> Oh, the hell with it! I'll just add a WINDOW keyword
> to all of these commands so that if you want to see
> a plot, contour, surface, etc in a resizeable graphics
> window, you just set the /WINDOW keyword on the command.
> Check back in about a half hour. :-)
OK, done. Set the Window keyword if you want to display
these graphics commands in a resizable graphics window.
http://www.dfanning.com/programs/fsc_plot.pro
http://www.dfanning.com/programs/fsc_contour.pro
http://www.dfanning.com/programs/fsc_surf.pro
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 #73950 is a reply to message #73861] |
Wed, 08 December 2010 07:49  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> Well, except of course it is not in a resizeable graphics
> window. If you want that, you will have to type
> this for a short while more:
>
> IDL> FSC_Window, 'FSC_Plot', findgen(11)
Oh, the hell with it! I'll just add a WINDOW keyword
to all of these commands so that if you want to see
a plot, contour, surface, etc in a resizeable graphics
window, you just set the /WINDOW keyword on the command.
Check back in about a half hour. :-)
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 #73951 is a reply to message #73861] |
Wed, 08 December 2010 07:39  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> OK, well, these are just the standard things you do
> with IDL plots. FSC_Plot is just a wrapper for the
> the IDL Plot and OPlot commands. Pretty much anything
> you can do with those two IDL commands will work with
> FSC_Plot. The only difference is that FSC_Plot works
> the way you would expect it to on modern computers. :-)
Well, except of course it is not in a resizeable graphics
window. If you want that, you will have to type
this for a short while more:
IDL> FSC_Window, 'FSC_Plot', findgen(11)
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 #73952 is a reply to message #73861] |
Wed, 08 December 2010 07:33  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
chris writes:
> that was exactly I'm looking for. Thank you again!
OK, well, these are just the standard things you do
with IDL plots. FSC_Plot is just a wrapper for the
the IDL Plot and OPlot commands. Pretty much anything
you can do with those two IDL commands will work with
FSC_Plot. The only difference is that FSC_Plot works
the way you would expect it to on modern computers. :-)
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 #73954 is a reply to message #73861] |
Wed, 08 December 2010 07:25  |
rogass
Messages: 200 Registered: April 2008
|
Senior Member |
|
|
On 8 Dez., 14:53, David Fanning <n...@dfanning.com> wrote:
> chris writes:
>> How can I prevent a subtitle of touching the lower plot window border?
>
> Again, I am having a little trouble understanding what you
> are asking. I presume you want to position the plot so it
> has more space at the bottom of the plot:
>
> fsc_plot, data, position=[0.15, 0.2, 0.925, 0.95]
>
> 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.")
Hi David,
that was exactly I'm looking for. Thank you again!
Cheers
CR
|
|
|
Re: Help with fsc_plot [message #73957 is a reply to message #73861] |
Wed, 08 December 2010 05:53  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
chris writes:
> How can I prevent a subtitle of touching the lower plot window border?
Again, I am having a little trouble understanding what you
are asking. I presume you want to position the plot so it
has more space at the bottom of the plot:
fsc_plot, data, position=[0.15, 0.2, 0.925, 0.95]
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.")
|
|
|