Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
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
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.")
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.
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.")
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.")
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.")