I'm trying to use Effects/Render/Function Plotter for use on math tests/worksheets/etc. But the function graph doesn't seem to be clipped properly to the bounding box. Sometimes I can draw a bounding box and use Path/Intersection, sometimes it doesn't work (linear functions like 1.5*x-3, for example).
The function does seem to be clipped to xmin and xmax, but not ymin and ymax. This is making it a bit harder to use for my application.
Am I missing something obvious?
Anybody have an easy way to do it?
Dave Straayer
Y Clipping & Effects/Render/Function Plotter
-
- Posts: 1
- Joined: Thu Dec 03, 2009 5:07 am
Re: Y Clipping & Effects/Render/Function Plotter
I'm not sure I can answer your question, but wanted to make some kind of attempt. This will cause your topic to be bumped back up to the top, and maybe someone who knows more about it can help you.
So when you say you draw a bounding box, I think you might mean that you're drawing a rectangular clipping path? And if that's the case, then if the clipped image (graph) isn't quite right, then the problem is the size of your clipping path. I've always found it helpful, when using Clip, to make sure my clipping path does not have a Stroke (because if I'm not mistaken, the Clip includes the stroke, if there is one).
However, if by bounding box, you're meaning something different, then you're way over my head, I'm afraid
But hopefully someone who can answer will reply, this time around 
So when you say you draw a bounding box, I think you might mean that you're drawing a rectangular clipping path? And if that's the case, then if the clipped image (graph) isn't quite right, then the problem is the size of your clipping path. I've always found it helpful, when using Clip, to make sure my clipping path does not have a Stroke (because if I'm not mistaken, the Clip includes the stroke, if there is one).
However, if by bounding box, you're meaning something different, then you're way over my head, I'm afraid


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
Re: Y Clipping & Effects/Render/Function Plotter
Did you set thedhstraayer wrote:The function does seem to be clipped to xmin and xmax, but not ymin and ymax.
- Y value of rectangle's bottom
- Y value of rectangle's top
There is no clipping path when the graph is inserted into the document: it is a regular path (including the axis if selected) that can be edited with the standard inkscape tools (select tool to move, scale, rotate; node editor to edited individual nodes etc.).dhstraayer wrote:But the function graph doesn't seem to be clipped properly to the bounding box.
It is unclear to me as well what exactly you mean by 'doesn't seem to be clipped properly to the bounding box'. The rectangle you draw before invoking the extension doesn't act as clipping path nor is it necessarily the bounding box of the resulting curve. It serves to define the scale of the x- and y-axis and the location of the origin (0,0) of the plotted function.
OTOH the extension has its inconsistencies - the drawing of the axis (if selected) is limited to the designated area by the previously drawn rectangle (simlutating some form of clipping of the graphical output) whereas any parts of the plotted function that are outside that area as well are fully rendered.