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

Home » Public Forums » archive » Re: FSC_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
Re: FSC_COLORBAR [message #77410 is a reply to message #77409] Thu, 01 September 2011 14:12 Go to previous messageGo to previous message
Bob[4] is currently offline  Bob[4]
Messages: 24
Registered: April 2009
Junior Member
I really like cgColorbar but it needs two small changes to really work right. These are to change the default format to '' and divisions to 0 (ie, let plot choose). See below for a diff. If you try the following with the default and modified version it will be clear why these are better defaults:

cgcolorbar, minrange=-1, maxrange=1

diff a/cgcolorbar.pro b/cgcolorbar.pro
84c84
< ; be (divisions + 1) annotations. The default is 6.
---
> ; be (divisions + 1) annotations. The default is chosen internally.
94c94
< ; FORMAT: The format of the bar annotations. Default is '(I0)'.
---
> ; FORMAT: The format of the bar annotations. Default is ''.
368c368
< IF N_ELEMENTS(format) EQ 0 THEN format = '(I0)'
---
> IF N_ELEMENTS(format) EQ 0 THEN format = ''
378c378
< IF N_ELEMENTS(divisions) EQ 0 THEN divisions = 6
---
> IF N_ELEMENTS(divisions) EQ 0 THEN divisions = 0
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: cgWindow Update
Next Topic: Font Tables Gone

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

Current Time: Sat Oct 11 06:57:35 PDT 2025

Total time taken to generate the page: 1.03995 seconds