SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Boyle, J. <bo...@ll...> - 2011年02月28日 16:40:14
I am using AxesGrid (from mpl_toolkits.axes_grid1 import AxesGrid) to generate multi-panel plots.
It does very well except I have a problem with a blank subplot.
I have 5 plots to display and the geometry of nrows_ncols=(3,2) produces the plot that I want 
except there is a frame placed in the last position - for which I did not call a plot.
I cannot figure out an elegant way to supress this frame. The kludge I use now is to just set the
edgecolor of the last grid subplot to the background and so it is not visible.
All the examples have an even number of subplot figures so the grid is filled and this situation does not occur.
--Jim
From: Paul I. <piv...@gm...> - 2011年02月28日 18:59:32
Boyle, Jim, on 2011年02月28日 08:40, wrote:
> I am using AxesGrid (from mpl_toolkits.axes_grid1 import
> AxesGrid) to generate multi-panel plots. It does very well
> except I have a problem with a blank subplot. I have 5 plots
> to display and the geometry of nrows_ncols=(3,2) produces the
> plot that I want except there is a frame placed in the last
> position - for which I did not call a plot.
> 
> I cannot figure out an elegant way to supress this frame. The
> kludge I use now is to just set the edgecolor of the last grid
> subplot to the background and so it is not visible.
> 
> All the examples have an even number of subplot figures so the
> grid is filled and this situation does not occur.
Hi Jim,
how's this:
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import AxesGrid
ag = AxesGrid(plt.figure(),(0,0,1,1),(2,3))
ag.axes_all[-1].set_visible(False)
best,
-- 
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 
From: Jae-Joon L. <lee...@gm...> - 2011年03月01日 03:23:08
You may use "ngrids" keyword parameter.
i.e.,., nrows_ncols=(3,2), ngrids=5
Regards,
-JJ
On Tue, Mar 1, 2011 at 1:40 AM, Boyle, Jim <bo...@ll...> wrote:
> I am using AxesGrid (from mpl_toolkits.axes_grid1 import AxesGrid) to generate multi-panel plots.
> It does very well except I have a problem with a blank subplot.
> I have 5 plots to display and the geometry of nrows_ncols=(3,2) produces the plot that I want
> except there is a frame placed in the last position - for which I did not call a plot.
>
> I cannot figure out an elegant way to supress this frame. The kludge I use now is to just set the
> edgecolor of the last grid subplot to the background and so it is not visible.
>
> All the examples have an even number of subplot figures so the grid is filled and this situation does not occur.
>
> --Jim
>
>
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs and other IT data in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT data
> generated by your applications, servers and devices whether physical, virtual
> or in the cloud. Deliver compliance at lower cost and gain new business
> insights. http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
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 によって変換されたページ (->オリジナル) /