Accurate Sine Wave PATH?

To clarify, I don't want to draw an approximation of sine wave, using the inaccurate hand/mouse movements. Rather, I would like to draw a sine wave (or control its properties) similar to the way I draw a circle, a rectangle, etc.

Related bugs

Related FAQ:

Inkscape includes an extension called Function Plotter. It can be used to create sine curves or any other function graphs. To access it, go to the Effects menu, and then the Render submenu. Other software, such as Xfig, KiG, or KSEG can also be used to create complex curves and then export to SVG for use in Inkscape.

- draw a rectangle, make sure that it is selected or highlighted
- click on Effects | Render | Function Plotter
- in the Function textbox, type sin(x)
- for y value of rectangle bottom, type -1
- for y value of rectangle top, type +1
- similarly you can customize the start and end x values to suit your taste.

The actual refresh, or update, process for the sine wave is not entirely clear to me, I find the most convenient thing is to simply delete the rectangle entirely and draw a new one, the Plotter routine will remember all your settings so you can simply hit Apply again, once you have a new empty rectangle selected.

Thank you for your answer. It was very helpful for figuring out the myriad of options there and generating my first sine wave. However, the generated sine wave appears modulated, not on a straight line - and its amplitude far exceeds the dimensions of the rectangle. What am I doing wrong?

This is really weird: the "Multiply x-range by 2*pi" checkbox is the one that effects the sine wave "modulation"... Why???

To better explain: If I check that "Multiply x-range by 2*pi" checkbox, then the sine wave draws around a perfectly horizontal line. Otherwise, it draws around another sine wave... Weird. What's the connection between modulation and changing the unit system to be radian based???

you are probably seeing the effects of what is known as "aliasing", which is what happens when you don't sample a signal fast enough to catch all the variations. Try using a smaller x range and a larger number of samples.