python paramtric plotting af a function

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
JosDuchIt
Posts: 291
Joined: Sun Jun 26, 2011 5:47 pm
Contact:

python paramtric plotting af a function

Post by JosDuchIt »

Is it possible using python to plot the graph af a function?

Same question for y = f(x) define by x = x(t), y = y(t)
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 600
Joined: Sat Jun 18, 2011 2:40 am
Location: Portsmouth, UK
Contact:

Re: python paramtric plotting af a function

Post by broadblues »

Well python can certainly create the coordinates for such a plot trivialy, but I don't think that there's a library for displaying that included as standard in the OS4 python dsitro.

Depending on the final needs:

Easiest route might be to use the ARexx module and an existing program to render the result.

PPaint, ImageFX and SketchBlock all have powerful arexx interfaces for such a thing.

Blender would enable creation of fancy 3D plots.

TurboCalc might be useful for chart style presentaion of the graph.

Harder route woulbe be to port a mathplotting module sych as the MatPlotLib described in this google search

http://www.google.co.uk/search?q=python ... 7AaR1YCoBQ
JosDuchIt
Posts: 291
Joined: Sun Jun 26, 2011 5:47 pm
Contact:

Re: python paramtric plotting af a function

Post by JosDuchIt »

@Broadblues, thanks for the suggestions

I did find a simple online solution here
http://jsfiddle.net/gh/get/jquery/1.7.1 ... of-arrays/

You just have to provide the set of coördinates . & you have a nice feedback on the exact values when you hover over the defined points
Post Reply