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 
Switch to threaded view of this topic Create a new topic Submit Reply
ring in fg graphics [message #90628] Wed, 18 March 2015 16:02 Go to next message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
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
Re: ring in fg graphics [message #90635 is a reply to message #90628] Thu, 19 March 2015 10:29 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
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')
Re: ring in fg graphics [message #90641 is a reply to message #90635] Thu, 19 March 2015 14:01 Go to previous messageGo to next 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')
Re: ring in fg graphics [message #90642 is a reply to message #90641] Thu, 19 March 2015 14:55 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Thursday, March 19, 2015 at 3:01:38 PM UTC-6, Helder wrote:
> 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.
>

Ah, I see. Yes, I agree - you'll probably just have to draw two polygons.
Cheers,
Chris
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: normal probability plot
Next Topic: PLOT3D format input

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

Current Time: Wed Oct 08 09:12:06 PDT 2025

Total time taken to generate the page: 0.00556 seconds