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

Home » Public Forums » archive » colorbar
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
colorbar [message #88410] Wed, 23 April 2014 05:53 Go to previous message
shbhuk is currently offline  shbhuk
Messages: 1
Registered: April 2014
Junior Member
I am trying to add a colorbar to the image generated by tvim and following is the code I am using.


---

loadct,4,ncolors=100


grid=bytscl(grid,0,1000)

tvim,grid
colorbar,ncolors=100


Though I get a colorbar on the image, the colorbar is empty and does not have the colorgradient.

On using cgcolorbar and tvim for the same, the colorbar obtained does not match with the color values in the image.
[Message index]
 
Read Message
Read Message
Previous Topic: Reading a Python numpy save (.npy) file into IDL
Next Topic: How to delete a variable

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

Current Time: Wed Oct 08 16:15:08 PDT 2025

Total time taken to generate the page: 0.00231 seconds