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

Home » Public Forums » archive » Re: Good-bye Contour Command
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: Good-bye Contour Command [message #73512] Sun, 14 November 2010 15:01
SonicKenking is currently offline  SonicKenking
Messages: 51
Registered: October 2010
Member
On Nov 13, 2:17 am, David Fanning <n...@dfanning.com> wrote:
> Folks,
>
> I have nothing against the new graphics (other than
> I think they are too complex to program and they make
> my computer pay even less attention to me than the
> faithful companion here at my feet, causing me to
> retreat back to IDL 7 if I want to get on with it), but
> I find I STILL rely on simple, fast traditional
> graphics commands, like CONTOUR, to get my work done.
>
> You may be like me. And, if so, you know how bad the
> Contour command sucks. Only works in indexed color
> mode, NLevels gives God only knows how many levels,
> holes in your plots if you try to draw the contour
> in PostScript, the list goes on and on.
>
> What if you had a traditional contouring program that
> actually worked? Would you use it?
>
> Well, now you do. I got fed up fooling around with
> contour plots earlier this week and just wrote the
> darn thing. A contour plot command for the rest of
> us, that works the way we do. On every machine and in
> every version of IDL. Hurray!
>
> The new FSC_Contour program is meant to do for the
> Contour command what TVImage and ImDisp and all the
> rest of the TV alternatives did for the TV command.
> That is, make it completely obsolete.
>
> You can read about it and see screen shots of some
> of the things it can do here:
>
>   http://www.dfanning.com/graphics_tips/fsc_contour.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.")

Thanks David. It is awesome as always.
Re: Good-bye Contour Command [message #73518 is a reply to message #73512] Fri, 12 November 2010 19:34 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Nov 12, 3:58 pm, David Fanning <n...@dfanning.com> wrote:
> jeanh writes:
>> I would suggest:
>> /NoLabel
>> which, if set, would (over)write SkipLabels=0
>
> How about just LABEL. LABEL=0, no labels. LABEL=1,
> all labeled. LABEL=2, every 2nd contour labeled.
> LABEL=3, every 3rd, and so on.
>
> Easier to type for sure. I haven't typed "skiplabel"
> right yet! :-(
>
> 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.")

Yeah, I'd be happy with that.

-Jeremy.
Re: Good-bye Contour Command [message #73521 is a reply to message #73518] Fri, 12 November 2010 14:47 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
R.G. Stockwell writes:

>> You can read about it and see screen shots of some
>> of the things it can do here:
>>
> http://www.dfanning.com/graphics_tips/fsc_contour.html
>
>
> Fantastic, thanks David!

Alright, it's a bit hard for me to stop now, with
half my programs working correctly and the other half
not. :-)

I'm in the process of modifying some programs and writing
others that will give me a suite of programs that work
the way I would like them to work. I am about to check the
following changes into the repository.

TVImage and TVScale have a new WHITE keyword that will
automatically set ERASE=1 and BACKGROUND='White' keywords.
It will also set the ACOLOR (axis color) keyword to "black"
if it is not already set to some other color. Before I finish
for the day, I may actually change this keyword to AXISCOLOR
to conform to other keywords in other programs.

Both of these routines have also been modified so that they
only ERASE when !P.MULTI[0] is zero. This allows you to
set ERASE keyword for a bunch of images, but only the first
image in a multiplot setup erases the display. In other words,
you don't have to do something special for the first image
in a series of images.

I've changed the SKIPLABEL keyword on FSC_Contour to just LABEL
and changed the documentation to maybe eliminate some amount of
confusion about this. I also now make the plot color inherit the
axis color and not visa versa as it was before.

I've written a new FSC_PLOT command that works the way FSC_CONTOUR
works with respect to colors in a device and color independent
manor. The one "extra" feature I've added to FSC_PLOT is the
ability to specify a plot aspect ratio (heigth/width). For example,
the ISOTROPIC keyword produces a 1/1 aspect ratio plot, but the
plot is centered in the window, not pushed over onto one side as
in the PLOT command. (I have a couple of ideas for improving this
functionality, but I'm setting those aside for the time being.)
It is possible to specify both an axis and a data color with this
new command.

I also wrote a new FSC_Erase command that works in a color mode
independent way, and erases to a white screen by default.

I am working currently on a FSC_SURF command, which will combine
the IDL Surface and Shade_Surf commands into a device independent
surface command.

Anyway, all of this will probably be ready over the weekend.
Check in on Monday to see what is available and to get the
latest bug-free versions. :-)

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: Good-bye Contour Command [message #73525 is a reply to message #73521] Fri, 12 November 2010 13:53 Go to previous message
R.G.Stockwell is currently offline  R.G.Stockwell
Messages: 163
Registered: October 2004
Senior Member
"David Fanning" <news@dfanning.com> wrote in message
news:MPG.2747086c87b9a81b98985d@news.giganews.com...
> Folks,
...
> You can read about it and see screen shots of some
> of the things it can do here:
>
http://www.dfanning.com/graphics_tips/fsc_contour.html
>
> 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.")



Fantastic, thanks David!

cheers,
bob
Re: Good-bye Contour Command [message #73527 is a reply to message #73525] Fri, 12 November 2010 12:58 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
jeanh writes:

> I would suggest:
> /NoLabel
> which, if set, would (over)write SkipLabels=0

How about just LABEL. LABEL=0, no labels. LABEL=1,
all labeled. LABEL=2, every 2nd contour labeled.
LABEL=3, every 3rd, and so on.

Easier to type for sure. I haven't typed "skiplabel"
right yet! :-(

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: Good-bye Contour Command [message #73528 is a reply to message #73527] Fri, 12 November 2010 12:54 Go to previous message
jeanh is currently offline  jeanh
Messages: 79
Registered: November 2009
Member
On 12/11/2010 3:08 PM, David Fanning wrote:
> Jeremy Bailin writes:
>
>> I find it somewhat counter-intuitive that in order to skip all contour
>> labels, I need to set SkipLabels=0, though.
>
> Yes, this isn't *quite* the right keyword name, but I
> came up blank thinking of others. We have about
> two hours, I think, to change it to something better. :-)
>
> Cheers,
>
> David

I would suggest:
/NoLabel
which, if set, would (over)write SkipLabels=0
Jean
Re: Good-bye Contour Command [message #73532 is a reply to message #73528] Fri, 12 November 2010 12:09 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jeremy Bailin writes:

> Oh, and the link on http://www.dfanning.com/documents/programs.html
> goes to fsc_pickfile.pro.

Thanks. Fixed now. :-)

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: Good-bye Contour Command [message #73533 is a reply to message #73532] Fri, 12 November 2010 12:08 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jeremy Bailin writes:

> I find it somewhat counter-intuitive that in order to skip all contour
> labels, I need to set SkipLabels=0, though.

Yes, this isn't *quite* the right keyword name, but I
came up blank thinking of others. We have about
two hours, I think, to change it to something better. :-)

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: Good-bye Contour Command [message #73536 is a reply to message #73533] Fri, 12 November 2010 11:57 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Nov 12, 2:54 pm, Jeremy Bailin <astroco...@gmail.com> wrote:
> On Nov 12, 10:17 am, David Fanning <n...@dfanning.com> wrote:
>
>
>
>
>
>
>
>
>
>> Folks,
>
>> I have nothing against the new graphics (other than
>> I think they are too complex to program and they make
>> my computer pay even less attention to me than the
>> faithful companion here at my feet, causing me to
>> retreat back to IDL 7 if I want to get on with it), but
>> I find I STILL rely on simple, fast traditional
>> graphics commands, like CONTOUR, to get my work done.
>
>> You may be like me. And, if so, you know how bad the
>> Contour command sucks. Only works in indexed color
>> mode, NLevels gives God only knows how many levels,
>> holes in your plots if you try to draw the contour
>> in PostScript, the list goes on and on.
>
>> What if you had a traditional contouring program that
>> actually worked? Would you use it?
>
>> Well, now you do. I got fed up fooling around with
>> contour plots earlier this week and just wrote the
>> darn thing. A contour plot command for the rest of
>> us, that works the way we do. On every machine and in
>> every version of IDL. Hurray!
>
>> The new FSC_Contour program is meant to do for the
>> Contour command what TVImage and ImDisp and all the
>> rest of the TV alternatives did for the TV command.
>> That is, make it completely obsolete.
>
>> You can read about it and see screen shots of some
>> of the things it can do here:
>
>>   http://www.dfanning.com/graphics_tips/fsc_contour.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.")
>
> Nice... I particularly like the ease of overplotting contours on
> images! (oh, and on a related note, thanks again for the /SAVE keyword
> to the new TVIMAGE, which means I can finally replace the much less-
> robust tvim in most of my code).
>
> I find it somewhat counter-intuitive that in order to skip all contour
> labels, I need to set SkipLabels=0, though.
>
> -Jeremy.

Oh, and the link on http://www.dfanning.com/documents/programs.html
goes to fsc_pickfile.pro.

-Jeremy.
Re: Good-bye Contour Command [message #73538 is a reply to message #73536] Fri, 12 November 2010 11:54 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Nov 12, 10:17 am, David Fanning <n...@dfanning.com> wrote:
> Folks,
>
> I have nothing against the new graphics (other than
> I think they are too complex to program and they make
> my computer pay even less attention to me than the
> faithful companion here at my feet, causing me to
> retreat back to IDL 7 if I want to get on with it), but
> I find I STILL rely on simple, fast traditional
> graphics commands, like CONTOUR, to get my work done.
>
> You may be like me. And, if so, you know how bad the
> Contour command sucks. Only works in indexed color
> mode, NLevels gives God only knows how many levels,
> holes in your plots if you try to draw the contour
> in PostScript, the list goes on and on.
>
> What if you had a traditional contouring program that
> actually worked? Would you use it?
>
> Well, now you do. I got fed up fooling around with
> contour plots earlier this week and just wrote the
> darn thing. A contour plot command for the rest of
> us, that works the way we do. On every machine and in
> every version of IDL. Hurray!
>
> The new FSC_Contour program is meant to do for the
> Contour command what TVImage and ImDisp and all the
> rest of the TV alternatives did for the TV command.
> That is, make it completely obsolete.
>
> You can read about it and see screen shots of some
> of the things it can do here:
>
>   http://www.dfanning.com/graphics_tips/fsc_contour.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.")

Nice... I particularly like the ease of overplotting contours on
images! (oh, and on a related note, thanks again for the /SAVE keyword
to the new TVIMAGE, which means I can finally replace the much less-
robust tvim in most of my code).

I find it somewhat counter-intuitive that in order to skip all contour
labels, I need to set SkipLabels=0, though.

-Jeremy.
Re: Good-bye Contour Command [message #73539 is a reply to message #73538] Fri, 12 November 2010 11:24 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

>> I tried:
>> fsc_contour, indgen(25,25), /fill
>> fsc_contour, indgen(25,25), /cell_fill
>> My axes got covered up with cell_fill.
>
> Ah, yes. I was was trying to limit the number of Contour
> keywords I needed to "trap". I was trying to finesse
> the Cell_Fill keyword, but I didn't think of this
> scenario. Easily fixed in about two minutes. :-)

Well, actually, I had the right code in there, I just
accidentally deleted the CELL_FILL keyword when I was
fooling around with something else. Checked into the
SVN repository now. It will be on my web page shortly.

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: Good-bye Contour Command [message #73540 is a reply to message #73539] Fri, 12 November 2010 11:11 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paul writes:

> I tried:
> fsc_contour, indgen(25,25), /fill
> fsc_contour, indgen(25,25), /cell_fill
> My axes got covered up with cell_fill.

Ah, yes. I was was trying to limit the number of Contour
keywords I needed to "trap". I was trying to finesse
the Cell_Fill keyword, but I didn't think of this
scenario. Easily fixed in about two minutes. :-)

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: Good-bye Contour Command [message #73541 is a reply to message #73540] Fri, 12 November 2010 11:02 Go to previous message
Paul[3] is currently offline  Paul[3]
Messages: 18
Registered: September 2010
Junior Member
On Nov 12, 8:28 am, David Fanning <n...@dfanning.com> wrote:
> Ammar Yusuf writes:
>> I think you meant to make this the link right?
>> http://www.dfanning.com/graphics_tips/fsc_contour.html
>
> Whoops! Yes, of course, sorry. :-(
>
> Cheers,
>
> David
>
> P.S. Note to self: fame meter must be broken. :-(
>
> --
> 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.")

David,
I tried:
fsc_contour, indgen(25,25), /fill
fsc_contour, indgen(25,25), /cell_fill
My axes got covered up with cell_fill.
Paul
Re: Good-bye Contour Command [message #73552 is a reply to message #73541] Fri, 12 November 2010 07:28 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ammar Yusuf writes:

> I think you meant to make this the link right?
> http://www.dfanning.com/graphics_tips/fsc_contour.html

Whoops! Yes, of course, sorry. :-(

Cheers,

David

P.S. Note to self: fame meter must be broken. :-(

--
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: Good-bye Contour Command [message #73553 is a reply to message #73552] Fri, 12 November 2010 07:24 Go to previous message
Ammar Yusuf is currently offline  Ammar Yusuf
Messages: 36
Registered: October 2010
Member
On Nov 12, 10:17 am, David Fanning <n...@dfanning.com> wrote:
> Folks,
>
> I have nothing against the new graphics (other than
> I think they are too complex to program and they make
> my computer pay even less attention to me than the
> faithful companion here at my feet, causing me to
> retreat back to IDL 7 if I want to get on with it), but
> I find I STILL rely on simple, fast traditional
> graphics commands, like CONTOUR, to get my work done.
>
> You may be like me. And, if so, you know how bad the
> Contour command sucks. Only works in indexed color
> mode, NLevels gives God only knows how many levels,
> holes in your plots if you try to draw the contour
> in PostScript, the list goes on and on.
>
> What if you had a traditional contouring program that
> actually worked? Would you use it?
>
> Well, now you do. I got fed up fooling around with
> contour plots earlier this week and just wrote the
> darn thing. A contour plot command for the rest of
> us, that works the way we do. On every machine and in
> every version of IDL. Hurray!
>
> The new FSC_Contour program is meant to do for the
> Contour command what TVImage and ImDisp and all the
> rest of the TV alternatives did for the TV command.
> That is, make it completely obsolete.
>
> You can read about it and see screen shots of some
> of the things it can do here:
>
>   http://www.dfanning.com/graphics_tips/fsc_contour.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.")

I think you meant to make this the link right?
http://www.dfanning.com/graphics_tips/fsc_contour.html

Thanks!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: display the angstrom symbol to the power of -1 in a widget_label
Next Topic: Re: run .sav file with -args

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

Current Time: Wed Oct 08 11:44:54 PDT 2025

Total time taken to generate the page: 0.00650 seconds