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

Home » Public Forums » archive » Regarding the Fit_Ellipse Program
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: Regarding the Fit_Ellipse Program [message #58967 is a reply to message #58903] Tue, 26 February 2008 14:28 Go to previous messageGo to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
plim.dream...@gmail.com wrote:
> On Feb 26, 4:51 pm, pgri...@gmail.com wrote:
>> plim.dream...@gmail.com wrote:
>>> So, I used contour to obtain the x and y positions of a certain
>>> contour level and labeled those arrays as posx and posy.
>>> then obtained the positions in terms of the device, because that is
>>> what polyfillv uses:
>>> D = convert_coord(posx,posy, /to_device)
>>
>>> I did a print,!D.x_size to get the device sizes (it gave me the famous
>>> 17780) so I did:
>>
>> This happens most likely because you are using the postscript device.
>> If you do set_plot,'X' or 'WIN', you should get more resonable values
>> for !D.x_size.
>>
>> Ciao,
>> Paolo> result = polyfillv(D(0,*),D(1,*),17780,17780)
>>> plots,fit_ellipse(result)
>
> Hi Paolo, Thanks for the reply,
> you are right, and yet I do want to put the ellipse onto the
> postscript output.
Yes, so what you need to do is to compute the ellipse
in a way that does not depend on the graphic device used and
then plot it. Can I just quickly ask what is your starting data
again (that is, how exactly you define your points in the first
place)?

Paolo

> B
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Histogram: Normalised Occurrence Frequency
Next Topic: google summer of code 2008

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

Current Time: Sat Oct 11 00:54:29 PDT 2025

Total time taken to generate the page: 1.44175 seconds