Re: filled usersym [message #50765] |
Wed, 18 October 2006 09:42 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Klemens Barfus writes:
> Do you have any suggestions for the rules applied here ?
Well, specifically, I would like to see how you
define the symbol with USERSYM compared to how
I do it. There must be some difference there, if
mine works and yours doesn't. Or, does mine not
work either? I'm now confused about whether you
tried it or not.
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: filled usersym [message #50769 is a reply to message #50765] |
Wed, 18 October 2006 09:14  |
Klemens Barfus
Messages: 45 Registered: December 2002
|
Member |
|
|
Hi David,
I meant, that your library looks fine, but I havent used it in my
specific problem.
I have tried to figure out the limits of my problem by a small programm.
If you use the vertical position a1 = 0.1 both symbols are filled
When you use a1=0.01, the rhomb is filled, but the triangle not. But you
can see the contours of the triangle.
With a1=0.0001 just contours for both symbols are displayed ....
Do you have any suggestions for the rules applied here ?
It seems not to be consequent to contour a symbol but to fill it not ....
Cheers,
Klemens
pro test
name_plot = 'test.ps'
path = 'c:\temp\'
set_plot, 'ps'
device,/landscape,/bold,/color,/times,/encapsulated,filename =
path+name_plot
loadct, 0
!p.background = 255
a = [0]
b = [0]
plot, a, b, xrange=[0,4], yrange=[0,4], /nodata
a1 = 0.1
;a1=0.01
;a1 =0.0001
a=[1,1]
b=[a1,1]
; plotting rhomb
x1 = [0,1,0,-1,0]
y1 = [-1,0,1,0,-1]
usersym, x1, y1, color=100, /fill
oplot, a, b, psym=8
usersym, x1, y1, color=0, thick=1
oplot, a, b, psym=8
a=[2,2]
b=[a1,1]
; plot triangle
x2 = [-0.5,0.5,0.0,-0.5]
y2 = [-0.25,-0.25,0.75,-0.25]
usersym, x2, y2, color=150, /fill
oplot, a, b, psym=8, symsize=1.7
usersym, x2 , y2, color=0, thick=1
oplot, a, b, psym=8, symsize=1.7
device,/close
set_plot,'win'
end
David Fanning wrote:
> Klemens Barfus writes:
>
>
>> I dont think so, because if symbols are plotted in the no clipping area,
>> they look fine ....
>>
>> But SYMCAT looks really fine :-) !
>
>
> Well, SYMCAT uses the same method you are using, so
> *something* must be different from what you are doing
> and what I am doing. :-)
>
> Cheers,
>
> David
|
|
|
Re: filled usersym [message #50774 is a reply to message #50769] |
Wed, 18 October 2006 08:42  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Klemens Barfus writes:
> I dont think so, because if symbols are plotted in the no clipping area,
> they look fine ....
>
> But SYMCAT looks really fine :-) !
Well, SYMCAT uses the same method you are using, so
*something* must be different from what you are doing
and what I am doing. :-)
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: filled usersym [message #50776 is a reply to message #50774] |
Wed, 18 October 2006 08:36  |
Klemens Barfus
Messages: 45 Registered: December 2002
|
Member |
|
|
Hi David,
>
> Do you suppose something is wrong with the way you
> calculate the triangle?
>
I dont think so, because if symbols are plotted in the no clipping area,
they look fine ....
But SYMCAT looks really fine :-) !
Cheers,
Klemens
|
|
|
Re: filled usersym [message #50779 is a reply to message #50776] |
Wed, 18 October 2006 08:13  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Klemens Barfus writes:
> I thought noclip=0 is the default setting ?
> I added it to the plot command and also to the oplot commands, but it
> does not solve the problem. But I have to mention that the problem
> arises, when I create a triangle. When I use a rhomb it works fine ....
Well, I don't know. All the filled triangles in SYMCAT seem
to work fine:
IDL> plot, findgen(11)
IDL> plots, 10, 3, psym=symcat(19), symsize=4
Do you suppose something is wrong with the way you
calculate the triangle?
Cheers,
David
P.S. You can find SYMCAT here:
http://www.dfanning.com/programs/symcat.pro
--
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: filled usersym [message #50783 is a reply to message #50779] |
Wed, 18 October 2006 07:45  |
Klemens Barfus
Messages: 45 Registered: December 2002
|
Member |
|
|
Hi David,
I thought noclip=0 is the default setting ?
I added it to the plot command and also to the oplot commands, but it
does not solve the problem. But I have to mention that the problem
arises, when I create a triangle. When I use a rhomb it works fine ....
Cheers,
Klemens
David Fanning wrote:
> Klemens Barfus writes:
>
>
>> working with the usersym option in a postscript plot, I created a filled
>> triangle. When the triangle is clipped at the plot boundaries, the
>> filling does not appear anymore and just the contour lines, plotted with
>> an extra command are visible.
>> What can I do or is this a bug of IDL ?
>
>
> Have you tried adding NOCLIP=0 (please don't ask!)
> to whatever command it is you are using?
>
> Let me know. I have some recent experience in this
> regard, so I may be able to explain what is happening,
> even if I can't fix it. :-)
>
> Cheers,
>
> David
|
|
|
Re: filled usersym [message #50785 is a reply to message #50783] |
Wed, 18 October 2006 07:28  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Klemens Barfus writes:
> working with the usersym option in a postscript plot, I created a filled
> triangle. When the triangle is clipped at the plot boundaries, the
> filling does not appear anymore and just the contour lines, plotted with
> an extra command are visible.
> What can I do or is this a bug of IDL ?
Have you tried adding NOCLIP=0 (please don't ask!)
to whatever command it is you are using?
Let me know. I have some recent experience in this
regard, so I may be able to explain what is happening,
even if I can't fix it. :-)
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.")
|
|
|