upiterbarg / mpmath

Automatically exported from code.google.com/p/mpmath
Other
0 stars 0 forks source link

[PATCH] Support for custom axes in visualization module #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This patch makes it possible to use the visualization module with
Reinteract [1]:

   > axes = replot.Axes()
   > plot(lambda x: exp(x)*li(x), [1, 4], axes=axes)
   > axes

will cause the plot to be displayed inline.

[1] http://reinteract.org

Original issue reported on code.google.com by jorn.baa...@gmail.com on 7 Nov 2009 at 1:18

Attachments:

GoogleCodeExporter commented 9 years ago
Very nice! The patch looks fine. I haven't run it yet (can't do it right now), 
but
will commit as soon as possible, unless I discover a problem.

Any way this can be tested? I know that the current code isn't tested, but this 
would
be a nice opportunity to add some unit tests.

Original comment by fredrik....@gmail.com on 9 Nov 2009 at 5:18

GoogleCodeExporter commented 9 years ago
Great!

I suppose we could test whether passing custom Axes works by checking whether 
the
axis labels get set, for example. I attach a file doing this.

Original comment by jorn.baa...@gmail.com on 10 Nov 2009 at 6:29

Attachments:

GoogleCodeExporter commented 9 years ago
Not sure if this has a place in mpmath, but I'm attaching it anyway, even if 
just for
reference: A function for 3D plotting of surfaces in the style of plot() and 
cplot().
It depends on matplotlib >= 0.98.5.3 for availability of the mplot3d toolkit.

Original comment by jorn.baa...@gmail.com on 11 Nov 2009 at 9:49

Attachments:

GoogleCodeExporter commented 9 years ago
Added in r1008, with some minor edits.

Thanks a lot for this! (And sorry about the delay.)

Original comment by fredrik....@gmail.com on 12 Jan 2010 at 1:07