SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: T J <tj...@gm...> - 2011年03月31日 08:32:27
Any chance matplotlib can get functionality similar to GraphicsArray
in Mathematica? It'd be nice to make a single method to draw whatever
you want and then do this in a list comprehension. At the end, you
can arrange all those plots however you want.
It looks like Sage has implemented something like this (built on top
of matplotlib, I presume). Would it be difficult to port this to
"pure" matplotlib?
 http://ask.sagemath.org/question/308/can-i-convert-a-graphicsarray-object-to-a-graphics
From: Jason G. <jas...@cr...> - 2011年03月31日 10:10:13
On 3/31/11 3:32 AM, T J wrote:
> Any chance matplotlib can get functionality similar to GraphicsArray
> in Mathematica? It'd be nice to make a single method to draw whatever
> you want and then do this in a list comprehension. At the end, you
> can arrange all those plots however you want.
>
> It looks like Sage has implemented something like this (built on top
> of matplotlib, I presume). Would it be difficult to port this to
> "pure" matplotlib?
>
> http://ask.sagemath.org/question/308/can-i-convert-a-graphicsarray-object-to-a-graphics
Sage does indeed have a (somewhat crufty) GraphicsArray object [1], 
which I've been meaning to convert to use the new GridSpec functionality 
[2]. It is built on top of matplotlib, but the code is fragile and easy 
to "break". See 
http://doxdrum.wordpress.com/2010/08/12/graphics-array-in-sagemath/, for 
example.
One thing that would be really nice in GridSpec is if we could plot 
things recursively. As I understand it right now, using GridSpec, we 
can arrange a bunch of axes in a grid. However, what if we wanted to 
put a grid inside of one of the spots in the grid? (I think the same 
question is: what if we wanted to embed a figure inside another axes?)
Jason
[1] 
http://www.sagemath.org/doc/reference/sage/plot/plot.html#sage.plot.plot.graphics_array
[2] http://matplotlib.sourceforge.net/users/gridspec.html; 
http://matplotlib.sourceforge.net/api/gridspec_api.html
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /