feature request: Scipy plotting in Inkscape, code attached

Bug #1179601 reported by Frank Samuelson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Wishlist
Unassigned

Bug Description

I like the function plot rendering extension in Inkscape (funcplot.py). I wanted to be able to use the plethora of functions in numpy and scipy (http://docs.scipy.org/doc/scipy/reference) with the extension. Therefore I added a few lines of code to Inkscape's funcplot.py to make this possible. Now a user of Function Plotter can plot functions like
scipy.stats.hypsecant.cdf(x,scale=.2,loc=.5) + scipy.special.i0e(x)

A patch is attached. It just loads scipy and the required submodules if they are are required given the user's input function. Equivalent functionality could be achieved by importing all the scipy modules at the beginning of the funcplot.py, but there are a lot of them, and importing them all is very slow. If scipy is not installed or a user mistypes a function name, the extension should fail as usual, noting the absence of said module or function. Feel free to use the patch. I find it very useful.

Revision history for this message
Frank Samuelson (inkscape0802n-12-cudgel) wrote :
su_v (suv-lp)
Changed in inkscape:
importance: Undecided → Wishlist
tags: added: extensions-plugins
jazzynico (jazzynico)
Changed in inkscape:
status: New → Triaged
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.