Using textthick control on cgColorbar [message #90686] |
Thu, 26 March 2015 13:45  |
simulana
Messages: 15 Registered: August 2012
|
Junior Member |
|
|
Has anyone successfully used the textthick command on cgColorbar? If so, perhaps you can help me figure out what I might be doing wrong. Instead of getting an error message, I get a weird hang in code that normally completes in less than a second.
Here is my complete color bar section:
ticks=loglevels([30,4000],/Fine)
nticks = n_elements(ticks)
cgColorbar,Range=[30,4000],Position=[0.15, 0.85, 0.9, 0.93],$
/ylog,/vertical,yticks=nticks-1,ytickv=ticks,charsize=3,/rig ht,textthick=4
If needed, I can also post the rest of the device commands. This is output in ps, and without the textthick command comes out normally, except for very thin lines and font.
Many Thanks,
CHristina
|
|
|
Re: Using textthick control on cgColorbar [message #90687 is a reply to message #90686] |
Thu, 26 March 2015 14:05   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
christina.haig@gmail.com writes:
> Has anyone successfully used the textthick command on cgColorbar? If so, perhaps you can help me figure out what I might be doing wrong. Instead of getting an error message, I get a weird hang in code that normally completes in less than a second.
>
> Here is my complete color bar section:
>
> ticks=loglevels([30,4000],/Fine)
> nticks = n_elements(ticks)
> cgColorbar,Range=[30,4000],Position=[0.15, 0.85, 0.9, 0.93],$
> /ylog,/vertical,yticks=nticks-1,ytickv=ticks,charsize=3,/rig ht,textthick=4
>
> If needed, I can also post the rest of the device commands. This is output in ps, and without the textthick command comes out normally, except for very thin lines and font.
Looks like it works perfectly to me. Here is the code I used to test it
on my Windows machine:
cgPS_Open, 'test.ps'
ticks=loglevels([30,4000],/Fine)
nticks = n_elements(ticks)
cgColorbar,Range=[30,4000],Position=[0.15, 0.85, 0.9, 0.93],$
/ylog,/vertical,yticks=nticks-1,ytickv=ticks,$
charsize=3,/right,textthick=4
cgPS_Close
END
Have you updated your Coyote Library lately?
http://idlcoyote.com/code_tips/fixcoyoteprogram.php
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.")
|
|
|
|
|
|
Re: Using textthick control on cgColorbar [message #90735 is a reply to message #90697] |
Wed, 08 April 2015 14:17  |
simulana
Messages: 15 Registered: August 2012
|
Junior Member |
|
|
Thanks for the followup by the way!
I personally know many graduate students who thank you profusely for your hard work.
On Friday, March 27, 2015 at 6:50:14 PM UTC-4, David Fanning wrote:
> David Fanning writes:
>
>> Well, the TEXTTHICK value is simply passed along to the CHARTHICK value
>> on a Plot command, so it is hard for me to understand how TEXTTHICK
>> won't work and CHARTHICK will. :-)
>
> Ah, I did find a problem! You can download the updated program here:
>
> http://www.idlcoyote.com/programs/cgcolorbar.pro
>
> 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.")
|
|
|