[Matplotlib-users] gridspec with text in one of the axes

2013-05-08 Thread Claus Haslauer
Hi,I am trying to produce a set of plots using grispec. There should be an images shown in each of the axes (using imshow) except in one of the axes, where I want to show/plot some text. However, the text seems to be too long to be displayed in one line. Is there a way to print it in something like

Re: [Matplotlib-users] gridspec

2011-11-21 Thread Benjamin Root
On Fri, Nov 18, 2011 at 9:22 AM, brogi federico wrote: > Hi, > > -my operating system is : > Linux fede 2.6.32-34-generic #77-Ubuntu SMP Tue Sep 13 19:40:53 UTC 2011 > i686 GNU/Linux > > -matplotlib version > 0.99.1.1 > > - I obtained the matplotlib from Sourceforge site > > - my problem is the

[Matplotlib-users] gridspec

2011-11-18 Thread brogi federico
Hi, -my operating system is :Linux fede 2.6.32-34-generic #77-Ubuntu SMP Tue Sep 13 19:40:53 UTC 2011 i686 GNU/Linux -matplotlib version0.99.1.1 - I obtained the matplotlib from Sourceforge site - my problem is the following: >>> from mpl_toolkits.basemap import Basemap Traceback (most recent c

Re: [Matplotlib-users] GridSpec has unecpected effect

2011-09-22 Thread Kurt Mueller
Am 17.09.2011 18:49, schrieb Kurt Mueller: > Am 17.09.2011 um 15:38 schrieb Jae-Joon Lee: >> Thanks for reporting this. >> I opened a pull request that I believe fixes this problem. >> https://github.com/matplotlib/matplotlib/pull/472 > Thank you very much! >> Please test this if you can. > I hope

Re: [Matplotlib-users] GridSpec has unecpected effect

2011-09-17 Thread Kurt Mueller
Am 17.09.2011 um 15:38 schrieb Jae-Joon Lee: > Thanks for reporting this. > I opened a pull request that I believe fixes this problem. > https://github.com/matplotlib/matplotlib/pull/472 Thank you very much! > Please test this if you can. I hope next week. > Depending on your need, you may wo

Re: [Matplotlib-users] GridSpec has unecpected effect

2011-09-17 Thread Jae-Joon Lee
Thanks for reporting this. I opened a pull request that I believe fixes this problem. https://github.com/matplotlib/matplotlib/pull/472 Please test this if you can. Depending on your need, you may work around this by calling all the set_position method always after all the GridSpec.update call.

[Matplotlib-users] GridSpec has unecpected effect

2011-09-16 Thread Kurt Mueller
Hi, In the following script, it seems to me, that GridSpec does not work as expected. #!/usr/bin/env python # vim: set fileencoding=utf-8 : # adapted from http://matplotlib.sourceforge.net/users/gridspec.html import matplotlib.pyplot as plt from matplotli

Re: [Matplotlib-users] Gridspec and shared y-axis label

2011-08-22 Thread Jae-Joon Lee
On Thu, Aug 18, 2011 at 5:53 PM, mogliii wrote: > 2) I want to make a shared y-axis label. I found this page: > http://www.scipy.org/Cookbook/Matplotlib/Multiple_Subplots_with_One_Axis_Label > But any additional axis I put before the gridspec axis is not shown in > the end. Is there a special proc

Re: [Matplotlib-users] Gridspec and shared y-axis label

2011-08-18 Thread Jae-Joon Lee
On Fri, Aug 19, 2011 at 1:29 AM, mogliii wrote: > Looking back I must say that > http://matplotlib.sourceforge.net/api/gridspec_api.html#matplotlib.gridspec.GridSpecBase > is not very helpful. And it is very counter-intuitive to the Axes > dimension specification with location lower left and width

[Matplotlib-users] Gridspec and shared y-axis label

2011-08-18 Thread mogliii
I could already answer one question by myself about the top margin in gridspec. '''1) I would like to reduce the top margin. For that I though I can do something like this: gs = gridspec.GridSpec(2, 1, width_ratios=[2,1]) - gs.update(bottom=0.2, left=0.2, hspace=0.05) + gs.update(bottom=0.2, left

Re: [Matplotlib-users] GridSpec Index Order

2010-10-26 Thread Jae-Joon Lee
Try this. def get_indx(irow, icol): return irow*4+icol ax = plt.subplot(gs[get_indx(0,3):get_indx(3,3)]) With 1d slicing, the axes will occupy the rectangle defined by the start and stop location. For example, gs[i:j] will occupy the rectangular area between gs[i] and gs[j-1]. Let me kno

Re: [Matplotlib-users] GridSpec Index Order

2010-10-25 Thread Nikolaus Rath
On 10/25/2010 11:18 AM, Jae-Joon Lee wrote: > On Mon, Oct 25, 2010 at 10:45 PM, Nikolaus Rath wrote: >> So I have to instantiate GridSpec with a (rows, column), but when I >> index the grid I have to use (column, row). >> >> Is there any reason for this counterintuitive behaviour? >> > > This is

Re: [Matplotlib-users] GridSpec Index Order

2010-10-25 Thread Jae-Joon Lee
On Mon, Oct 25, 2010 at 10:45 PM, Nikolaus Rath wrote: > So I have to instantiate GridSpec with a (rows, column), but when I > index the grid I have to use (column, row). > > Is there any reason for this counterintuitive behaviour? > This is not an intended behavior but a bug which affects a grid

[Matplotlib-users] GridSpec Index Order

2010-10-25 Thread Nikolaus Rath
Hello, I just noticed that in order to get a 3 row by 4 column grid, I have to do import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec def make_ticklabels_invisible(fig): for i, ax in enumerate(fig.axes): ax.text(0.5, 0.5, "ax%d" % (i+1), v

Re: [Matplotlib-users] GridSpec for Figure objects?

2010-10-24 Thread Jae-Joon Lee
On Mon, Oct 25, 2010 at 3:14 AM, Nikolaus Rath wrote: > I would like to create subplots with different sizes using the object > oriented API. However, it seems that the subplot2grid() method exists > only in pyplot, but not as a Figure instance method. Am I looking in the > wrong place? How do I u

[Matplotlib-users] GridSpec for Figure objects?

2010-10-24 Thread Nikolaus Rath
Hello, I would like to create subplots with different sizes using the object oriented API. However, it seems that the subplot2grid() method exists only in pyplot, but not as a Figure instance method. Am I looking in the wrong place? How do I use subplot2grid with an existing Figure object? Thank