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

Home » Public Forums » archive » ring in fg graphics
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: ring in fg graphics [message #90641 is a reply to message #90635] Thu, 19 March 2015 14:01 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
Hi Chris,
thanks.
I'm sorry, but I did not express myself properly. And I shouldn't post at midnight. Too tired and I could not think straight.
As far as I'm concerned, the topic is "closed".
For your information, what I was trying to achieve was getting rid of the line that connects inner and outer circle when not filling the background.
[
this is visible in as a vertical connection and can be seen by substituting your last code line with
p = POLYGON(x, y, fill_background=0 , /NORMAL)
]
I think that the only way around this is to use an object that draws two polygons. I've not tested this, but I think that's the way to go.

Thanks, Helder


On Thursday, March 19, 2015 at 6:29:03 PM UTC+1, Chris Torrence wrote:
> On Wednesday, March 18, 2015 at 5:02:15 PM UTC-6, Helder wrote:
>> Hi,
>> is there a way to make a ring in function graphics in a single call?
>> I've tried using polygon with the connectivity keyword without luck. I don't see a way to do this using ellipse.
>> Is this impossible or am I just having a hard time getting the solution?
>>
>> Thanks,
>> Helder
>
> I think we talked about this a couple of weeks ago.
>
> a = findgen(101)/100*2*!PI
> x = 0.5 + [0.3*SIN(a), 0.2*SIN(a)]
> y = 0.5 + [0.3*COS(a), 0.2*COS(a)]
> w = WINDOW()
> p = POLYGON(x, y, FILL_COLOR='red', /NORMAL, LINESTYLE='none')
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: normal probability plot
Next Topic: PLOT3D format input

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

Current Time: Wed Oct 08 15:48:36 PDT 2025

Total time taken to generate the page: 0.11117 seconds