Re: plot symbols only in oplot? [message #50264] |
Thu, 21 September 2006 08:50 |
Dilkushi@gmail.com
Messages: 21 Registered: August 2006
|
Junior Member |
|
|
Thank you so much Dr. Fanning for the prompt reply
it works
dilkushi
David Fanning wrote:
> Dilkushi@gmail.com writes:
>
>> I need to plot a smooth curve around the user defined plotting
>> symbols..
>> The method I use is
>> plot, DAY, NOAA16,$
>> charsize=2,Yrange=[0,3],Xrange=[Xmin,Xmax], /NODATA
>> oplot, DAY, NOAA16,psym=-8,color=3 ; statement 1
>> T = FINDGEN(96*(Xmax-Xmin))/96.+Xmin
>> Z=SPLINE(DAY,NOAA16,T)
>> oplot, T, Z,linestyle=1,thick=3 ; statement 2
>>
>> I get a line from statement 1 and a line from statement 2
>> I do not need the line from statement 1
>>
>> Sorry to bother you with the small questions..
>
> Remove the minus sign from your PSYM keyword in
> Statement 1.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: plot symbols only in oplot? [message #50265 is a reply to message #50264] |
Thu, 21 September 2006 08:41  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Dilkushi@gmail.com writes:
> I need to plot a smooth curve around the user defined plotting
> symbols..
> The method I use is
> plot, DAY, NOAA16,$
> charsize=2,Yrange=[0,3],Xrange=[Xmin,Xmax], /NODATA
> oplot, DAY, NOAA16,psym=-8,color=3 ; statement 1
> T = FINDGEN(96*(Xmax-Xmin))/96.+Xmin
> Z=SPLINE(DAY,NOAA16,T)
> oplot, T, Z,linestyle=1,thick=3 ; statement 2
>
> I get a line from statement 1 and a line from statement 2
> I do not need the line from statement 1
>
> Sorry to bother you with the small questions..
Remove the minus sign from your PSYM keyword in
Statement 1.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|