Re: [Matplotlib-users] matplotlibrc interpretation under Windows seems buggy

2012-05-24 Thread Benjamin Root
On Thursday, May 24, 2012, Jerzy Karczmarczuk wrote: > Gurus, > > Windows XP, matplotlib 1.1.0. Backend Tk, but the same elsewhere. > > Programme: > > import matplotlib as mpl > import matplotlib.pyplot as plt > mpl.rcParams['lines.linewidth'] = 2 > mpl.rcParams['lines.color'] = 'r' > > x=range(80

[Matplotlib-users] matplotlibrc interpretation under Windows seems buggy

2012-05-24 Thread Jerzy Karczmarczuk
Gurus, Windows XP, matplotlib 1.1.0. Backend Tk, but the same elsewhere. Programme: import matplotlib as mpl import matplotlib.pyplot as plt mpl.rcParams['lines.linewidth'] = 2 mpl.rcParams['lines.color'] = 'r' x=range(800) y=[t for t in x] plt.plot(x,y) plt.show() # ==

Re: [Matplotlib-users] griddata is not working after update to Python 2.7

2012-05-24 Thread Benjamin Root
On Thursday, May 24, 2012, Umut Yildiz wrote: > Dear All, > > I used to use griddata in order to make my contourmaps. However, after I > updated > my Python from 2.6 to 2.7 griddata is not working anymore. > > I tried some workarounds but no success. > > The countourmap that I produced before is h

[Matplotlib-users] griddata is not working after update to Python 2.7

2012-05-24 Thread Umut Yildiz
Dear All, I used to use griddata in order to make my contourmaps. However, after I updated my Python from 2.6 to 2.7 griddata is not working anymore. I tried some workarounds but no success. The countourmap that I produced before is here. http://dl.dropbox.com/u/17983476/matplotlib/contour_dT_wo

[Matplotlib-users] plotting through ipython and QT4 custom widgets

2012-05-24 Thread AI
Hi, I want to add a QT4 widget to a matplotlib figure, but the widget does not react to user input. Here it is a test case: from PyQt4 import QtGui, QtCore from pylab import * def test(): plot([1,2,3], lw=2) qt4_interface(gcf()) class qt4_interface: def __init__(self,fig):

Re: [Matplotlib-users] Easy mistake to make...

2012-05-24 Thread Michael Droettboom
Seems like a good idea. Maybe we gracefully deprecate this? i.e. warn about the confusing usage now, and throw exceptions in a future version? Mike On 05/24/2012 10:22 AM, Benjamin Root wrote: On Thu, May 24, 2012 at 10:09 AM, Tony Yu > wrote: On Thu, May 2

Re: [Matplotlib-users] Easy mistake to make...

2012-05-24 Thread Benjamin Root
On Thu, May 24, 2012 at 10:09 AM, Tony Yu wrote: > > > On Thu, May 24, 2012 at 9:54 AM, Benjamin Root wrote: > >> Just got bit by this and I thought I'd share to help others. >> >> I was just quickly writing out some pyplot commands to create two >> subplots to compare some results. I did: >> >

Re: [Matplotlib-users] Easy mistake to make...

2012-05-24 Thread Tony Yu
On Thu, May 24, 2012 at 9:54 AM, Benjamin Root wrote: > Just got bit by this and I thought I'd share to help others. > > I was just quickly writing out some pyplot commands to create two subplots > to compare some results. I did: > > plt.subplots(1, 2, 1) > plt.contourf() > plt.title("Contou

Re: [Matplotlib-users] Slow imshow when zooming or panning with several synced subplots

2012-05-24 Thread Tony Yu
On Thu, May 24, 2012 at 9:14 AM, Sergi Pons Freixes wrote: > On Wed, May 23, 2012 at 6:27 PM, Tony Yu wrote: > > > > I'm not sure what you mean by "normalize the values to an appropriate > number > > of bits", but I don't think setting `vmin` or `vmax` will change the data > > type of the image.

[Matplotlib-users] Easy mistake to make...

2012-05-24 Thread Benjamin Root
Just got bit by this and I thought I'd share to help others. I was just quickly writing out some pyplot commands to create two subplots to compare some results. I did: plt.subplots(1, 2, 1) plt.contourf() plt.title("Contours") xlim = plt.xlim() ylim = plt.ylim() plt.subplots(1, 2, 2) plt.im

Re: [Matplotlib-users] strange behaviour with sankey diagram (maybe a bug)

2012-05-24 Thread Giovanni
martedì 22 maggio 2012, 18:33, Kevin Davies: > Hi Giovanni, > Do the labels still overlap to the same extent? As far is the Sankey > code is concerned, the "center" is the center of the rectangle from > which the paths diverge. That isn't necessarily the center of the > bounding box that e

Re: [Matplotlib-users] Slow imshow when zooming or panning with several synced subplots

2012-05-24 Thread Sergi Pons Freixes
On Wed, May 23, 2012 at 6:27 PM, Tony Yu wrote: > > I'm not sure what you mean by "normalize the values to an appropriate number > of bits", but I don't think setting `vmin` or `vmax` will change the data > type of the image. So if you have 64-bit floating point images (100+ Mb per > image), then