function plotter fails silently if called without selection

Bug #800552 reported by Martin Konôpka
6
This bug affects 1 person
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
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
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=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: inkscape
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Martin Konôpka (martin.konopka) wrote :
description: updated
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

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.

Changed in inkscape (Ubuntu):
status: New → Incomplete
Changed in inkscape:
status: New → Incomplete
Revision history for this message
su_v (suv-lp) wrote :

Basic Usage instructions for the extension are in the manual:
<http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Extensions-Render.html#Extensions-FunctionPlotter>

tags: added: extensions-plugins
Revision history for this message
Martin Konôpka (martin.konopka) wrote :

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.

Revision history for this message
Alvin Penner (apenner) wrote :

attached is a modified version of funcplot.py, which will raise a warning message if no rectangle is selected.

Revision history for this message
Alvin Penner (apenner) wrote :

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

Revision history for this message
Martin Konôpka (martin.konopka) wrote :

Thanks! I just installed the patch on Inkscape 0.48 into
/usr/share/inkscape/extensions/
and tried it. It works nicely, i.e. I got the notification.
M.

su_v (suv-lp)
summary: - function plotter in inkscape does not work
+ function plotter fails silently if called without selection
Changed in inkscape:
assignee: nobody → Alvin Penner (apenner)
importance: Undecided → Low
status: Incomplete → In Progress
Changed in inkscape (Ubuntu):
status: Incomplete → Triaged
importance: Undecided → Low
Revision history for this message
Alvin Penner (apenner) wrote :

committed to bzr rev 10370

Changed in inkscape:
status: In Progress → Fix Committed
jazzynico (jazzynico)
Changed in inkscape:
milestone: none → 0.49
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Attaching upstream patch for backport testing in Ubuntu

tags: added: patch-accepted-upstream
removed: amd64 natty
Changed in inkscape (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Alex Valavanis (valavanisalex)
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

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.

Changed in inkscape (Ubuntu):
assignee: Alex Valavanis (valavanisalex) → nobody
status: In Progress → Triaged
Changed in inkscape:
status: Fix Committed → Fix Released
Changed in inkscape (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.