[Matplotlib-users] bbox_inches='tight' from the navigation toolbar

2012-07-06 Thread Saurav Pathak
Hi, I would often save figures after show() from the savefig button on the navigation toolbar. I would like to trim white spaces using something akin to bbox_inches='tight', but haven't been able to figure out how. I tried adding the following to matplotlibrc, but to no avail: savefig.bbox_i

Re: [Matplotlib-users] key_press_events in matplotlib embedded in pyqt4

2012-02-18 Thread Saurav Pathak
I created an issue here: https://github.com/matplotlib/matplotlib/issues/707 On 02/18/2012 11:00 AM, Benjamin Root wrote: On Saturday, February 18, 2012, Jerzy Karczmarczuk wrote: Saurav Pathak : > I am trying to generate key press events in matplotlib (imshow) embedded &

[Matplotlib-users] key_press_events in matplotlib embedded in pyqt4

2012-02-18 Thread Saurav Pathak
Hi, I am trying to generate key press events in matplotlib (imshow) embedded in pyqt4, but I am getting nowhere. My code is given below. Even though the imshow seems to work OK, there is no response when I press keys. I am using an mpl_connect self.canvas.mpl_connect('key_press_event', se

[Matplotlib-users] many plots

2012-02-03 Thread Saurav Pathak
Hi All, First, thanks for a very cool and pretty tool! My problem is, I have a 2D numpy array, say m by n, and I would like to display the data in n plots (with the same abscissa). That is, the 2D numpy array holds n time series data with m points each. I could use pyplot.plot inside a loop