function plotter fails silently if called without selection
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Inkscape |
Fix Released
|
Low
|
Alvin Penner | ||
| inkscape (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Bug Description
I open Inkscape and want to plot an implemented function using Extensions / Render / Function Plotter. Nothing is plotted however. See also attached screenshot to see what I wanted to plot and other details. I checked that there was really no object plotted: I was not able not select anything within the entire Inkscape area.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: inkscape 0.48.1-2ubuntu2
ProcVersionSign
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Wed Jun 22 10:14:24 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
LANGUAGE=en
PATH=(custom, user)
LANG=en_GB.utf8
LC_MESSAGES=
SHELL=/bin/bash
SourcePackage: inkscape
UpgradeStatus: No upgrade log present (probably fresh install)
- screen capture showing inkscape Edit (233.6 KiB, image/png)
- Dependencies.txt Edit (5.1 KiB, text/plain; charset="utf-8")
Hi Martin,
Just to confirm... Did you draw a rectangle before using the plotter? The function-plotter requires you to select a plotting area before you tell it to render a function. In other words, please could you confirm that you use the tool as follows:
* Draw a rectangle
* Select the rectangle
* Choose the function plotter extension, enter details and hit "Apply".
I also noticed a couple of potential problems with your input fields:
* You're only using 2 samples... i.e. your sine curve will only contain two data points.
* You selected a y-range of 0:1 but the sine function has a range of -1:1. This means that the curve will extended below the bottom of your selected drawing rectangle.
Basic Usage instructions for the extension are in the manual:
<http://
Hi Alex,
Sorry for my incorrect report. Now it works. I was ignoring the rectangle; I somehow thought that it was not mandatory to create and select a rectangle.
However, I guess that in future it might be convenient to add a notification to user in such cases. ("Please draw and select a rectangle first.") I understand of course that there are more important things first to be solved.
Thanks and sorry again.
Martin.
- funcplot.py Edit (12.0 KiB, text/x-python)
attached is a modified version of funcplot.py, which will raise a warning message if no rectangle is selected.
- funcplot.inx Edit (3.0 KiB, text/xml)
if you are running Inkscape 0.48 then you will probably also need to update the inx file as well, attached is the latest version from trunk
Thanks! I just installed the patch on Inkscape 0.48 into
/usr/share/
and tried it. It works nicely, i.e. I got the notification.
M.
+ function plotter fails silently if called without selection
committed to bzr rev 10370
removed: amd64 natty
Unassigning from Inkscape (Ubuntu) for now. Let's wait for the imminent upstream 0.48.3 bugfix release to be packaged before backporting any new patches.