Hello !
I wanted to know if there is possible to draw a parabola in inkscape (0.48) ?
I drew a parabola starting with a line and editing the path but this is not a proper method..
Is there a method or a trick or something ?
Thanks in advance!
Drawing a parabola ?
Re: Drawing a parabola ?
I've seen a page on how to draw a sine wave using splines before, so I did a web search...
This page (http://forum.datacad.com/viewtopic.php?t=8312&sid=c9e8f110662284f23e5110e9f342f156) says
So, assuming that's true, draw a single (two point) horizontal line using . Use to bend it. Put a guide at the centre of the line. Place the cusp nodes of each end point on top of each other at the guide, at whatever height. The bent line is a parabola.
This page (http://forum.datacad.com/viewtopic.php?t=8312&sid=c9e8f110662284f23e5110e9f342f156) says
.A threepoint Bézier curve should produce a parabolic segment
So, assuming that's true, draw a single (two point) horizontal line using . Use to bend it. Put a guide at the centre of the line. Place the cusp nodes of each end point on top of each other at the guide, at whatever height. The bent line is a parabola.
Re: Drawing a parabola ?
There's an extension to plot any mathematical function you like (Menu: extension > render > function plotter)
Re: Drawing a parabola ?
Thanks a lot for the replies. The "function plotter" is very handy
Re: Drawing a parabola ?
Sorry for necroing, but this page seems to be very popular on google.
A cubic bezier with the two handles on top of each other is NOT a quadratic bezier. So Slow Dog's method for making parabolas will not work. (the reason is that the bezier nodes for the cubic travel at a quadratic pace instead of linearly)
To see this graphically, try making a "parabola" using his method. Then, cut off the ends and rescale it to be as big as the first "parabola". It won't match. However, a real parabola would. That is, you can scale any parabola to get any other parabola.
A cubic bezier with the two handles on top of each other is NOT a quadratic bezier. So Slow Dog's method for making parabolas will not work. (the reason is that the bezier nodes for the cubic travel at a quadratic pace instead of linearly)
To see this graphically, try making a "parabola" using his method. Then, cut off the ends and rescale it to be as big as the first "parabola". It won't match. However, a real parabola would. That is, you can scale any parabola to get any other parabola.
Re: Drawing a parabola ?
Just a note: cutting off cannot be done in inkscape precisely.
With a boolean operation nodes are recalculated and they move a bit.
Still a good point with the scaling though.
With a boolean operation nodes are recalculated and they move a bit.
Still a good point with the scaling though.
Re: Drawing a parabola ?
Lazur URH wrote:Just a note: cutting off cannot be done in inkscape precisely.
With a boolean operation nodes are recalculated and they move a bit.
That's very interesting, and I just confirmed it to be true. Why does this happen? Floating point precision issues?
As for the cutting off ends method, the ends can be cut off imprecisely by inserting two extra nodes, since the cut location doesn't matter. As far as I'm aware, adding nodes doesn't modify the path in any way (but I could be wrong).
Here's an interesting observation: the parabola is a local minimum. That is, if you keep on cutting off ends on any bezier whatsoever, then the resulting curve will be a parabola. Try it!
(lines count as parabolas too )
So, if you ever want a parabola, then just make an arbitrary curve, then make two nodes really close together on the curve. That short section will be very close to the parabola you want.

 Posts: 1
 Joined: Sat Oct 20, 2018 3:31 am
Re: Drawing a parabola ?
There is a real easy way to draw any curve based on an equation:
In Libre Calc or Excel create x values say 0 to 10 in one column and in the second column type the function you want say y=2*x^2 (a parabola)
cell A1 type 0 and in cell B1 type in the formula bar =2*(click on cell A1)^2)
click A2 and in the formula bar type =a1+1; copy B1 and paste in B2
Click on A2 and B2 (shift key) and drag it down however long you want the x and y values to be.
Now all these cells are filled with x and y values for a parabola y=2*x^2 (x being the first column and y being the second).
Select all the cells > go to chart > xy scatter >smooth curve finish
You get the plot of a parabola.
Now click on the curve (make sure it is only the curve), copy and paste into inkscape window. I only got an image of the curve. May be it is possible to get a vector plot directly. I just drew a brazier curve to conform to the image and deleted the copied image.
In Libre Calc or Excel create x values say 0 to 10 in one column and in the second column type the function you want say y=2*x^2 (a parabola)
cell A1 type 0 and in cell B1 type in the formula bar =2*(click on cell A1)^2)
click A2 and in the formula bar type =a1+1; copy B1 and paste in B2
Click on A2 and B2 (shift key) and drag it down however long you want the x and y values to be.
Now all these cells are filled with x and y values for a parabola y=2*x^2 (x being the first column and y being the second).
Select all the cells > go to chart > xy scatter >smooth curve finish
You get the plot of a parabola.
Now click on the curve (make sure it is only the curve), copy and paste into inkscape window. I only got an image of the curve. May be it is possible to get a vector plot directly. I just drew a brazier curve to conform to the image and deleted the copied image.
Re: Drawing a parabola ?
As this message was answered 8 years ago, Inkscape can draw parabolas using an extension. There's no need to use other programs, unless you just want to.
Basics  Help menu > Tutorials
Manual  Inkscape: Guide to a Vector Drawing Program
Inkscape Community  Inkscape FAQ  Gallery
Inkscape for Cutting Design
Manual  Inkscape: Guide to a Vector Drawing Program
Inkscape Community  Inkscape FAQ  Gallery
Inkscape for Cutting Design
Return to “Help with using Inkscape”
Who is online
Users browsing this forum: No registered users and 2 guests