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

Home » Public Forums » archive » Re: plotting vertical lines
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
Re: plotting vertical lines [message #83860] Thu, 11 April 2013 15:22
DavidF[1] is currently offline  DavidF[1]
Messages: 94
Registered: April 2012
Member
Leah Huk writes:

> Just tried scrapping VLINE and using cgPlotS instead, like your example. Still doesn't work. The line at 4861A looks the way it should, while the other three STILL appear thicker and grey. Arg!

I have a feeling that everything is probably "working," but whatever you are viewing the output with is not doing a good job. How are you viewing the output?

What happens if you use integers for the thickness values, rather than floats?

Cheers,

David
Re: plotting vertical lines [message #83861 is a reply to message #83860] Thu, 11 April 2013 13:37 Go to previous message
Leah Huk is currently offline  Leah Huk
Messages: 8
Registered: November 2012
Junior Member
I am using
IDL> print,!version
{ x86_64 Win32 Windows Microsoft Windows 8.2.1 Aug 20 2012 64 64}

On Thursday, April 11, 2013 2:29:10 PM UTC-6, Leah Huk wrote:
> On Thursday, April 11, 2013 2:19:21 PM UTC-6, Phillip Bitzer wrote:
>
>> This works for me just fine:
>
>>
>
>>
>
>>
>
>> ps_start,'filename.ps'
>
>>
>
>> cgDisplay,3000,900,/free
>
>>
>
>>
>
>>
>
>> x = findgen(100)*70 & y = randomu(seed, 100)
>
>>
>
>> cgplot,x,y,title='title',xtitle='xname',ytitle='yname',color ='red',thick=3
>
>>
>
>> cgplots, REPLICATE(6563, 2), !Y.CRANGE,color='black',linestyle=0,thick=0.75
>
>>
>
>> cgplots, REPLICATE(4861, 2), !Y.CRANGE,color='black',linestyle=0,thick=0.75
>
>>
>
>> cgplots, REPLICATE(5876, 2), !Y.CRANGE,color='black',linestyle=1,thick=0.75
>
>>
>
>> cgplots, REPLICATE(5017, 2), !Y.CRANGE,color='black',linestyle=1,thick=0.75
>
>>
>
>>
>
>>
>
>> ps_end
>
>>
>
>>
>
>>
>
>> I'm using:
>
>>
>
>> IDL> print, !version
>
>>
>
>> { x86_64 darwin unix Mac OS X 8.2.2 Jan 23 2013 64 64}
>
>
>
> Just tried scrapping VLINE and using cgPlotS instead, like your example. Still doesn't work. The line at 4861A looks the way it should, while the other three STILL appear thicker and grey. Arg!
Re: plotting vertical lines [message #83862 is a reply to message #83861] Thu, 11 April 2013 13:29 Go to previous message
Leah Huk is currently offline  Leah Huk
Messages: 8
Registered: November 2012
Junior Member
On Thursday, April 11, 2013 2:19:21 PM UTC-6, Phillip Bitzer wrote:
> This works for me just fine:
>
>
>
> ps_start,'filename.ps'
>
> cgDisplay,3000,900,/free
>
>
>
> x = findgen(100)*70 & y = randomu(seed, 100)
>
> cgplot,x,y,title='title',xtitle='xname',ytitle='yname',color ='red',thick=3
>
> cgplots, REPLICATE(6563, 2), !Y.CRANGE,color='black',linestyle=0,thick=0.75
>
> cgplots, REPLICATE(4861, 2), !Y.CRANGE,color='black',linestyle=0,thick=0.75
>
> cgplots, REPLICATE(5876, 2), !Y.CRANGE,color='black',linestyle=1,thick=0.75
>
> cgplots, REPLICATE(5017, 2), !Y.CRANGE,color='black',linestyle=1,thick=0.75
>
>
>
> ps_end
>
>
>
> I'm using:
>
> IDL> print, !version
>
> { x86_64 darwin unix Mac OS X 8.2.2 Jan 23 2013 64 64}

Just tried scrapping VLINE and using cgPlotS instead, like your example. Still doesn't work. The line at 4861A looks the way it should, while the other three STILL appear thicker and grey. Arg!
Re: plotting vertical lines [message #83863 is a reply to message #83862] Thu, 11 April 2013 13:19 Go to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
This works for me just fine:

ps_start,'filename.ps'
cgDisplay,3000,900,/free

x = findgen(100)*70 & y = randomu(seed, 100)
cgplot,x,y,title='title',xtitle='xname',ytitle='yname',color ='red',thick=3
cgplots, REPLICATE(6563, 2), !Y.CRANGE,color='black',linestyle=0,thick=0.75
cgplots, REPLICATE(4861, 2), !Y.CRANGE,color='black',linestyle=0,thick=0.75
cgplots, REPLICATE(5876, 2), !Y.CRANGE,color='black',linestyle=1,thick=0.75
cgplots, REPLICATE(5017, 2), !Y.CRANGE,color='black',linestyle=1,thick=0.75

ps_end

I'm using:
IDL> print, !version
{ x86_64 darwin unix Mac OS X 8.2.2 Jan 23 2013 64 64}
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: CMIP5 model output
Next Topic: Re: CMIP5 model output

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

Current Time: Wed Oct 08 09:15:58 PDT 2025

Total time taken to generate the page: 0.00589 seconds