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

Home » Public Forums » archive » Using textthick control on cgColorbar
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
Using textthick control on cgColorbar [message #90686] Thu, 26 March 2015 13:45 Go to next message
simulana is currently offline  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 Go to previous messageGo to next message
David Fanning is currently offline  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 #90693 is a reply to message #90687] Fri, 27 March 2015 14:15 Go to previous messageGo to next message
simulana is currently offline  simulana
Messages: 15
Registered: August 2012
Junior Member
Oddly I did not get the problem solved with textthick, but with the help of a colleague I did find out that using 'charthick' works on cgColorbar. So if anyone else has a problem in the future, that might help them.
Re: Using textthick control on cgColorbar [message #90694 is a reply to message #90693] Fri, 27 March 2015 15:16 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
simulana@gmail.com writes:

> Oddly I did not get the problem solved with textthick, but with the help of a colleague I did find out that using 'charthick' works on cgColorbar. So if anyone else has a problem in the future, that might help them.

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. :-)

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 #90697 is a reply to message #90694] Fri, 27 March 2015 15:50 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
Re: Using textthick control on cgColorbar [message #90735 is a reply to message #90697] Wed, 08 April 2015 14:17 Go to previous message
simulana is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Rick Towler's idl programs (camera etc.)....
Next Topic: FIT_ELLIPSE

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

Current Time: Wed Oct 08 07:16:53 PDT 2025

Total time taken to generate the page: 0.00594 seconds