Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3595
| From | Hans-Bernhard Bröker <HBBroeker@t-online.de> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: gnuplot (fitting of ellipse) |
| Date | 2017-03-25 14:22 +0100 |
| Message-ID | <ejn99eF7firU1@mid.dfncis.de> (permalink) |
| References | <1d68425b-6a98-4762-8f7a-3091b9198947@googlegroups.com> <9ff689bb-3cb6-4b40-be9e-3411d86743dd@googlegroups.com> <ob2vmq$sqq$1@solani.org> <7f0d850e-449b-4730-8bbd-955180c3772d@googlegroups.com> |
Am 25.03.2017 um 01:55 schrieb vineeth25396@gmail.com: > The reason why I use the > formula cause I have a C++ code that gives the co-efficient of the > ellipse in form of a,b,c,d,e,f. And I want to see if the co-efficents > are matching. The link below will make more sense > https://en.wikipedia.org/wiki/Matrix_representation_of_conic_sections A large part of the problem with your description, and of the cause for the failures you've run across is sloppy use of terminology. The equation you started out with isn't that of an ellipse. It's not even really an equation. It's the definition of a quadratic function of two variables. What you're talking about is the implicit equation for an ellipse made by that function, by convention: f(x,y) = 0 gnuplot doesn't plot implicit equations just like that. You have to plot intersection of the surface made up by points < x,y,f(x,y) > with the implicit surface z=0. As this is about surfaces, you have to use splot for this, plot. Then see "help contour" about how to get just the intersection curve. Or you could apply the math of conic sections to transform your impliciat equation into the explicit form of the elleipse, i.e. two new functions, x(t) and y(t) that trace the ellipse. Written as 2D vectors, that explicit form will be of the general form X = X_0 + A * cos(t) + B * sin(t) | t = 0 ... 2*pi where vectors A and B are orthogonal to each other. gnuplot can plot that in parametric mode.
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
gnuplot (fitting of ellipse) vineeth25396@gmail.com - 2017-03-24 02:24 -0700
Re: gnuplot (fitting of ellipse) vineeth25396@gmail.com - 2017-03-24 03:01 -0700
Re: gnuplot (fitting of ellipse) Karl Ratzsch <mail.kfr@gmx.net> - 2017-03-24 12:25 +0100
Re: gnuplot (fitting of ellipse) vineeth25396@gmail.com - 2017-03-24 17:55 -0700
Re: gnuplot (fitting of ellipse) Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2017-03-25 14:22 +0100
Re: gnuplot (fitting of ellipse) Karl Ratzsch <mail.kfr@gmx.net> - 2017-03-24 11:28 +0100
csiph-web