Y Clipping & Effects/Render/Function Plotter

Post questions on how to use or achieve an effect in Inkscape.
dhstraayer
Posts: 1
Joined: Thu Dec 03, 2009 5:07 am

Y Clipping & Effects/Render/Function Plotter

Postby dhstraayer » Thu Dec 03, 2009 5:18 am

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

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Y Clipping & Effects/Render/Function Plotter

Postby brynn » Wed Dec 09, 2009 11:17 am

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 ;)

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Y Clipping & Effects/Render/Function Plotter

Postby ~suv » Wed Dec 09, 2009 3:36 pm

dhstraayer wrote:The function does seem to be clipped to xmin and xmax, but not ymin and ymax.
Did you set the
  • Y value of rectangle's bottom
  • Y value of rectangle's top
so that the rendered part of your function is within the area of the previously drawn rectangle? If I set those values to -5, 0 the slanted line representing the function 'y=1.5*x-3' (with Start X value 0 and End X value =1) is drawn within the 'box', whereas with the default values the graph was drawn far below the rectangle.

dhstraayer wrote:But the function graph doesn't seem to be clipped properly to the bounding box.
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.).
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.


Return to “Help with using Inkscape”