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

Home » Public Forums » archive » Coyote Graphics Update 29 Jan 2011
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
Coyote Graphics Update 29 Jan 2011 [message #74666] Sat, 29 January 2011 14:27 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

There have been widespread updates to Coyote Graphics programs
today. I think 14 programs changed in exciting (to me anyway!)
ways that added additional functionality.

http://www.idlcoyote.com/programs/coyoteprograms.zip

Here are some of the highlights.

All Coyote Graphics routines for displaying traditional
graphics commands now support a LAYOUT keyword that works
identically to the LAYOUT keyword in the IDL 8 function
graphics commands. Here, for example, is how you can
display four different kinds of plots in a display window:

FSC_Display
CTLoad, 33, RGB_Table=palette
FSC_Plot, LoadData(1), Layout=[2,2,3], Color='red'
FSC_Contour, LoadData(2), NLevels=12, Layout=[2,2,1], Color='blue'
FSC_Surf, LoadData(2), /Elevation, Layout=[2,2,4, Palette=palette
TVImage, Loaddata(19), Multimargin=4, /Axes, Layout=[2,2,2]

Here is how you can display the same four plots in a resizeable
graphics window:

CTLoad, 33, RGB_Table=palette
FSC_Plot, LoadData(1), Layout=[2,2,3], Color='red', /Window
FSC_Contour, LoadData(2), NLevels=12, Layout=[2,2,1], $
Color='blue', /AddCmd
FSC_Surf, LoadData(2), /Elevation, Layout=[2,2,4], $
Palette=palette, /AddCmd
TVImage, Loaddata(19), Multimargin=4, /Axes, Layout=[2,2,2], /AddCmd

The Histoplot program also has LAYOUT, WINDOW and ADDCMD keywords added.

All Coyote Graphics routines are now defined with WINDOW and/or
ADDCMD keywords so these commands can be added easily to the
resizeable graphics windows. A new FSC_WControl (window control)
program has been written to allow you to easily set FSC_Window
properties. (This is addition to FSC_WSet and FSC_WDelete.)

CTLOAD and XCOLORS have been configured so that when the WINDOW
keyword is set, the colors that are loaded with these commands
are sent directly to the current FSC_Window (or to any FSC_Window
you designate). For example, if you have displayed an image in
a resizeable graphics window like this:

TVImage, LoadData(7), /Keep_Aspect, Margin=0.1, /Window

Then, to change color tables and have your image immediately updated,
you must only do this:

CTLoad, 5, /Window

Or,

XColors, /Window

PALETTE keywords have been added to TVIMAGE, FSC_SURF, and FSC_Window
to allow these programs to load and maintain their own color table
vectors. With this functionality, you no longer have to worry about
color table contamination issues. (Other programs mucking with the color
table, loading drawing colors, etc.) Color tables will be loaded
immediately before image or surface display and returned to their
former state immediately after. This also makes it possible to use
multiple color tables in both normal and resizeable graphics windows.

The easiest way to get a color palette is with CTLOAD and the
RGB_TABLE keyword. When this keyword is used, colors are not
loaded, but a 256 by 3 array is created that can be used with
the PALETTE keyword to these other routines.

CTLoad, 33, RGB_TABLE=palette
TVImage, LoadData(7), PALETTE=palette, /KEEP, /Window

I'm sorry, but I can't program fast enough to keep up with all
the good ideas! I told my wife it seems like a programming
conspiracy. All the programs I've written in the past five years
are working together to create a completely new graphics system,
almost against my will. I want to get a book out the door, and these
damn programs are demanding to be written! Yikes! It's the Night of the
Body Snatchers. :-(

At the very least they are demanding updates thoughout the book
and another completely new chapter to explain their many features.
What a wild week this has been. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Coyote Graphics Update 29 Jan 2011 [message #74719 is a reply to message #74666] Tue, 01 February 2011 08:07 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jeremy Bailin writes:

> No, they're working great! But the number of useful
> things that I'm missing out on has grown enough that
> it's worth enduring the wrath of the sysadmin. ;-)

I'm going to become a sysadmin in my next life. The POWER! :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Coyote Graphics Update 29 Jan 2011 [message #74720 is a reply to message #74666] Tue, 01 February 2011 08:05 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
No, they're working great! But the number of useful things that I'm missing out on has grown enough that it's worth enduring the wrath of the sysadmin. ;-)

(not that upgrading is especially difficult, but I don't like prodding him without a good reason)

-Jeremy.
Re: Coyote Graphics Update 29 Jan 2011 [message #74747 is a reply to message #74666] Mon, 31 January 2011 09:50 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jeremy Bailin writes:

> Ah, I'm at 7.0.4. I think it's time to bite the bullet and get our sysadmin to upgrade!

Were you having problems with Coyote Graphics routines?

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Coyote Graphics Update 29 Jan 2011 [message #74748 is a reply to message #74666] Mon, 31 January 2011 09:31 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
Ah, I'm at 7.0.4. I think it's time to bite the bullet and get our sysadmin to upgrade!

-Jeremy.
Re: Coyote Graphics Update 29 Jan 2011 [message #74757 is a reply to message #74666] Sun, 30 January 2011 12:02 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jeremy Bailin writes:

> Now THAT is one of the most useful things I've seen
> in a long time! But to do PS output, does it require
> idl8 in order to get the 24 bit ps device?

24-bit PostScript support was added in IDL 7.1,
although the Get_Decomposed keyword wasn't working
until IDL 7.1.1. All of the Coyote Graphics routines
*try* to work in decomposed color whenever possible.
(All of the version and machine dependencies are
concentrated in SetDecomposedState, by the way, so
you don't have to worry about these details yourself.)
But the programs are designed to work in either
decomposed or indexed color without difficulties.

Since I haven't worked in indexed color for at least
the last 6-8 years, I sometimes forget to check to be
sure this is the case, but that's the idea, anyway.
I always figured if the PostScript version of the
program worked, it *must* work in indexed color. And,
too, there are enough people stuck with at least
one foot in the 1970s that I am sure I would hear
about it if the programs didn't work the way they
are suppose to. :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Coyote Graphics Update 29 Jan 2011 [message #74758 is a reply to message #74666] Sun, 30 January 2011 10:41 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
> PALETTE keywords have been added to TVIMAGE, FSC_SURF, and FSC_Window
> to allow these programs to load and maintain their own color table
> vectors. With this functionality, you no longer have to worry about
> color table contamination issues. (Other programs mucking with the color
> table, loading drawing colors, etc.) Color tables will be loaded
> immediately before image or surface display and returned to their
> former state immediately after. This also makes it possible to use
> multiple color tables in both normal and resizeable graphics windows.

Now THAT is one of the most useful things I've seen in a long time! But to do PS output, does it require idl8 in order to get the 24 bit ps device?

-Jeremy.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: hai
Next Topic: Intersecting Polygons and results

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

Current Time: Wed Oct 08 13:48:01 PDT 2025

Total time taken to generate the page: 0.08732 seconds