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

Home » Public Forums » archive » Draw a circle enclosed to the other
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
Draw a circle enclosed to the other [message #90683] Thu, 26 March 2015 05:33 Go to next message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
Hi

I wanted to create two circles where the one enclosed to the other and I found the circle function which creates circles. What I want is the green and yellow circle as shown in the following page.

https://www.idlcoyote.com/tips/make_circle.html

For some reason I copy paste the whole code
TVLCT, [255,0], [255,255], [0,0], 1
POLYFILL, CIRCLE(65, 65, 20), Color=1, /Device
PLOTS, CIRCLE(130, 130, 30), /Device
PLOTS, CIRCLE(195, 195, 20), /Device, Color=2
PLOTS, CIRCLE(195, 195, 10), /Device, Color=1

But I am ending up only with the white circle created by PLOTS, CIRCLE(130, 130, 30), /Device.

Can anyone help with this?
Re: Draw a circle enclosed to the other [message #90684 is a reply to message #90683] Thu, 26 March 2015 05:38 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
g.nacarts@gmail.com writes:

> I wanted to create two circles where the one enclosed to the other and I found the circle function which creates circles. What I want is the green and yellow circle as shown in the following page.
>
> https://www.idlcoyote.com/tips/make_circle.html
>
> For some reason I copy paste the whole code
> TVLCT, [255,0], [255,255], [0,0], 1
> POLYFILL, CIRCLE(65, 65, 20), Color=1, /Device
> PLOTS, CIRCLE(130, 130, 30), /Device
> PLOTS, CIRCLE(195, 195, 20), /Device, Color=2
> PLOTS, CIRCLE(195, 195, 10), /Device, Color=1
>
> But I am ending up only with the white circle created by PLOTS, CIRCLE(130, 130, 30), /Device.
>
> Can anyone help with this?

TVLCT, [255,0], [255,255], [0,0], 1
cgColorFill, CIRCLE(65, 65, 20), Color=1, /Device
cgPLOTS, CIRCLE(130, 130, 30), /Device
cgPLOTS, CIRCLE(195, 195, 20), /Device, Color=2
cgPLOTS, CIRCLE(195, 195, 10), /Device, Color=1

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: ZLIB_UNCOMPRESS limited to 4GB?
Next Topic: Array subscript for ARRAY must have same size as source expression

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

Current Time: Wed Oct 08 07:17:27 PDT 2025

Total time taken to generate the page: 0.00355 seconds