Hi Gary, I have a couple comments:

1) No need for:

+    ax = fig.add_subplot(111)
+    ax.set_axis_off()

2) It's probably best to have maximum compatibility with imshow().
Therefore, use vmin=None and vmax=None as keyword arguments (rather than
clims).

Otherwise, I tested and it works for me.

-Andrew

Gary Ruben wrote:
> Hi,
> 
> I've attached a patch against the mpl head in response to John's
> suggestion and helpful pointers on the users list. This adds a new
> function imsave to complement imread in the image module. I've also
> exposed it in the pyplot interface.
> If this is presumptuous, feel free to remove it from the patch or ask me
> to remove it. This is my first contribution to matplotlib for a while
> and my first attempt at a patch like this.
> 
> Because I don't build matplotlib from source, I've done what testing I
> can without fully rebuilding matplotlib. I'd be reluctant to have this
> patch applied without someone else checking it first. It's pretty simple
> so applying it locally and running the demo file should be a good enough
> test.
> 
> thanks,
> Gary Ruben
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to