Re: plotting vertical lines [message #83860] |
Thu, 11 April 2013 15:22 |
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  |
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  |
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  |
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}
|
|
|