comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Using textthick control on cgColorbar
items: Re: Using textthick control on cgColorbar

Using textthick control on cgColorbar
type: item
description: 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
creator: simulana
date: 2015-03-26T20:45:54-00:00

Re: Using textthick control on cgColorbar
type: item
description: 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.")
creator: David Fanning
date: 2015-03-26T21:05:56-00:00

Re: Using textthick control on cgColorbar
type: item
description: 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.
creator: simulana
date: 2015-03-27T21:15:16-00:00

Re: Using textthick control on cgColorbar
type: item
description: 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.")
creator: David Fanning
date: 2015-03-27T22:16:28-00:00

Re: Using textthick control on cgColorbar
type: item
description: 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.")
creator: David Fanning
date: 2015-03-27T22:50:05-00:00

Re: Using textthick control on cgColorbar
type: item
description: 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.")
creator: simulana
date: 2015-04-08T21:17:51-00:00