How to Draw a Parabola in Inkscape?

Post questions on how to use or achieve an effect in Inkscape.
dcb6!8
Posts: 13
Joined: Sun Nov 25, 2012 6:50 am
Contact:

How to Draw a Parabola in Inkscape?

Postby dcb6!8 » Tue Nov 17, 2015 12:52 pm

Hi, everybody.

I am about to explore parabolic curves and am planning to create some graphics to accompany the theory.
Is there is a "best" way to draw parabolas?

At the moment, I am planning to create two or three parabolas of different focus, for example,

x = (1/(4*0.25)) y^2 and
x = (1/(4*0.75)) y^2

Is there a way to simply input the formula?
Alternately, can data points be generated in a separate application and then manually typed into Inkscape?

Assuming I get this working, my next step is to create curves of other shapes: cubics, quartics, perhaps other exponentials.
So . . . I'm laying the groundwork for future work and would like to make sure I start out in the right direction.

Guidance is much appreciated.

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: How to Draw a Parabola in Inkscape?

Postby hulf2012 » Tue Nov 17, 2015 1:14 pm

Hello

Inkscape can generate graphics based in math functions with an extension
You can read more about that here:
http://tavmjong.free.fr/INKSCAPE/MANUAL ... ionPlotter

About graphing data from a table, I think in this forum a similar extension was requested. I think Others did it. Please a search about that.

- Or you can make a image of your data plot and then trace it on Inkscape
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Trace.html

- I think that GNUPLOT can export to SVG format, which can be used by Inkscape. I'm not sure

However, Inkscape it's not a math tool, so some other features can't be present.
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: How to Draw a Parabola in Inkscape?

Postby Lazur » Tue Nov 17, 2015 5:07 pm

Hi

dcb6!8 wrote:At the moment, I am planning to create two or three parabolas of different focus, for example,
x = (1/(4*0.25)) y^2 and
x = (1/(4*0.75)) y^2



Insert But why?.gif here.
Have never seen someone calculating x upon y, usually that would be the other way around.

As mentioned you can use the funcion plotter or the parametric curves extension.


y=1/x should result in a hyperbolic graph. What you have now is not really hyperbolic.
Like x=1000.00/t/x would be much better, where you change t's value for hyperbolas with different focuses.


Edit: was a bit sleepy on it was parabolas, and not hyperbolas, my bad.
y=t*x^2

Remember to add .00 digits to any parameter you want to keep as float otherwise they might be calculated as even values -been there, done that.

(By the way all hyperbolasparabolas are similar to eachother, so for different focuses you can just scale one hyperbola parabola that you have plotted -scale factor is t in the example above.)

User avatar
Grobe
Posts: 411
Joined: Tue Feb 02, 2010 2:20 am

Re: How to Draw a Parabola in Inkscape?

Postby Grobe » Wed Nov 18, 2015 3:13 am

Hi.

Geogebra (very extensive math tool) is perfect to graph curves, and has also the ability to export files to .swg

Here is a .swg file, exported from Geogebra, with the two parabolas you defined. Tip - when Inkscape is open, you can drag this svg file into Inkscape window to import it and apply. Also remember that .swg files exported from Geogebra is always collected into one group, and after imported you may have to ungroup it twice if you want to get the parabolas as separated objects.

parabolic-test.svg
Exported from Geogebra
(27.02 KiB) Downloaded 381 times
:lol:

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: How to Draw a Parabola in Inkscape?

Postby ragstian » Wed Nov 18, 2015 5:24 am

Hi.

Inkscape got this functionality built in by use of an extension.

Draw a rectangle on the canvas, select the rectangle and select from the dropdown menus:
Extension - Render - Function Plotter

To get "your" parabola enter as in this example:

Image

You will get this result:

SVG Image

(Right Click to download as SVG.)

Have Fun!
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar


Return to “Help with using Inkscape”