No Y clipping in Effects/Render/Function Plotter
Bug #492103 reported by
dhstraayer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Wishlist
|
su_v |
Bug Description
The function plotter is almost perfect for use in generating graphs for use in math worksheets, exams, etc. A glaring problem is that as the function is evaluated from Xmin to Xmax (effectively clipping the function to the left and right), the function is drawn on the canvas outside the bounding box (in the Y direction). At the very least, a checkbox should be added "Clip in Y direction", which could be left unchecked by default to preserve backward compatibility. This clipping should be a piece of cake to do, as it is a strictly one-dimensional clipping against Ymax and Ymin. If I undertake to download the source myself, I might just give it a try...
Related branches
tags: | added: extensions-plugins |
Changed in inkscape: | |
assignee: | nobody → ~suv (suv-lp) |
milestone: | none → 0.49 |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
1) Any contributions would be very welcome! You don't need to download the source if you want to work on enhancing the function plotter extension: it is a python script that is installed with the default Inkscape 0.47 distribution. Depending on your OS you can find it in these default locations: inkscape/ extensions/ funcplot. py Inkscape. app/Contents/ Resources/ extensions/ funcplot. py \share\ extensions\ funcplot. py
linux: /usr/share/
osx: /Applications/
win32: [installation directory of inkscape]
Links to the 0.47 release branch source code repository: bazaar. launchpad. net/%7Einkscape .dev/inkscape/ RELEASE_ 0_47_BRANCH/ annotate/ head%3A/ share/extension s/funcplot. py> bazaar. launchpad. net/%7Einkscape .dev/inkscape/ RELEASE_ 0_47_BRANCH/ annotate/ head%3A/ share/extension s/funcplot. inx>
Python script:
<http://
Extension definition file:
<http://
2) the term 'clipping' is problematic for what you miss in the output of the function plotter: 'clipping' in Inkscape refers to the implementation of the SVG feature described in the SVG spec (http:// www.w3. org/TR/ SVG11/masking. html#ClippingPa ths).
3) I agree that the output of the function plotter seems inconsistent: the x and y axis (if drawn) are limited to the area of the initial rectangle whereas the function curve itself, when rendered for values between the entered 'Start X value' and 'End X value', is not. AFAIU the requested "Y clipping" is implemented by adjusting the Y values of the rectangle's top and bottom so that the output lies within the rectangle.