[Extension] Parametric Plotter

Bug #169968 reported by Tattsan
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Wishlist
Unassigned

Bug Description

Function plotter extension is useful.
But we couldn't plot parametric curves.
I modified funcplot.py and funcplot.inx in order to draw parametric
curves.

Revision history for this message
Tattsan (tattsan) wrote :
Revision history for this message
Tattsan (tattsan) wrote :

Originator: YES

File Added: paramplot.inx

Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Originator: NO

Thank you - but in SVN we have switched our effects from PyXML to lxml, so
your extension won't work as is. Can you please download an SVN build and
make it work with it? The changes should be simple enough I think, just
look up in other effects how they are done.

Also, can you please expand the Help tab with an explanation of what is
parametric curve and how it changes from the regular function graph?

Final question - is this possible to merge this all back to function
plotter so that one could use both regular and parametric from the same UI,
with a toggle in the dialog?

Revision history for this message
Tattsan (tattsan) wrote :

Originator: YES

Hi.

> Can you please download an SVN build and make it work with it?

I downloaded the trunk version, and tried the original function
plotter. But I get a TypeError as following.

> File "/usr/local/share/inkscape/extensions/funcplot.py", line 115, in
drawfunction
> dy0 = (y1 - y0)/ds
> TypeError: unsupported operand type(s) for -: 'str' and 'str'

The version of lxml library I've installed is 1.3.3.
Does any other libraries required?

>Also, can you please expand the Help tab with an explanation of what is
>parametric curve and how it changes from the regular function graph?

All right.

>Final question - is this possible to merge this all back to function
>plotter so that one could use both regular and parametric from the same
UI,
>with a toggle in the dialog?

I don't know whether it is easy or not for me:-)

Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Originator: NO

Yes, the funcplot in svn seems broken - sorry, we have a really hectic
rate of development these days, if you can fix funcplot it will be very
much appreciated. I also sent a request for help to the devel list.

Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Originator: NO

ok, now the function plotter works in svn, so you can make yours work with
svn too

Ryan Lerch (ryanlerch)
Changed in inkscape:
importance: Undecided → Wishlist
status: New → In Progress
jazzynico (jazzynico)
tags: added: extensions-plugins
Revision history for this message
jazzynico (jazzynico) wrote :

A parametric plotter extension is already available as of Inkscape 0.47 (Extensions>Render>Parametric Curves).
It's not exactly the same code as yours, so feel free to comment or send a patch if you think there are things that can be improved in the released one.

Changed in inkscape:
milestone: none → 0.47
status: In Progress → 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.