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

Home » Public Forums » archive » Re: Help with vert_colors and rgb_table
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 vert_colors and rgb_table [message #82972 is a reply to message #82958] Mon, 28 January 2013 09:40 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
justinclouds writes:

> I am trying to plot x, y and z where x and y are plotted in XY plot and z is a color vector. This is the command I use and it works well:
>
> p=plot(x, y, symbol='o', LINESTYLE = ' ', vert_colors=z, rgb_table=39)
>
> What I need is to be able to show the color scale in the plot area to give an indication of the scale on the z values. Also, can the color range in z values be controlled?
>
> More info:
> x, y and z are FLOAT = Array[507]
> z has range from 0 to 100.
>
> Any help with proper syntax is appreciated.

I don't know how this is done in function graphics. There
is an example of how it is done in Coyote Graphics in the
Colored Line Plots example in the Gallery. To restrict Z
to 100 colors, for example, simply replace the value
255 with 100 in the elevColors variable, and restrict your
color table to 100 colors with the NColors keyword.

http://www.idlcoyote.com/gallery/

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: 3-D arrows
Next Topic: 2013 Collection Of Solution Manuals & Test Banks. More Than 15,000 Titles

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

Current Time: Fri Oct 10 10:21:23 PDT 2025

Total time taken to generate the page: 0.80086 seconds