[Matplotlib-users] pygtk/matplotlib/threading

2011-12-03 Thread Carl Michal
Hi, I'm using matplotlib with pygtk in a threaded application. I've seen some intermittent hangs, that I think arise from a gtk.gdk.threads_enter/leave pair missing in matplotlib. From the gtk/pygtk documentation, gtk idle functions need to be protected by these locks, but in

Re: [Matplotlib-users] Histograms

2011-09-29 Thread Michal
Stupid mistake, My data array was wrong I had it just to rotate and now it is working. On Thu, Sep 29, 2011 at 2:01 PM, Michal micta...@gmail.com wrote: Thank you for the links, but I had trouble to get them running with Matplotlib 1.0.1. However, I downloaded the source code from

[Matplotlib-users] matplotlib.cm problem to distinguish data

2011-09-29 Thread Michal
Hello, I have problem to distinguish 10 colours generated with cm.hsv. import matplotlib.cm as cm for row in range(len(data)): bt = plt.bar(range(len(data[row])), data[row], width=width, color=cm.hsv(39*(row)), label=mutations_all[row],

[Matplotlib-users] reducing space between xticks

2011-09-29 Thread Michal
Hello, Please find attached the a bar chart picture. How is it possible to reduce the space between the bars and xticks with the following code: # prepare the bottom array bottom = np.zeros(len(snp_types)) width = .2 # for each line in data for row in range(len(data)):

[Matplotlib-users] Histograms

2011-09-28 Thread Michal
Hello, I have found the following histogram example http://gnuplot.sourceforge.net/demo/histograms.4.png which was created with the following gnuplot code: http://gnuplot.sourceforge.net/demo/histograms.4.gnu and with this data set

Re: [Matplotlib-users] Histograms

2011-09-28 Thread Michal
for stacked bars, but than as said my experience with matplotlib is basic Cheers On Wed, Sep 28, 2011 at 8:54 AM, Michal micta...@gmail.com wrote: Hello, I have found the following histogram example http://gnuplot.sourceforge.net/demo/histograms.4.png which was created with the following

[Matplotlib-users] matplotlib setup problem

2010-08-18 Thread Michal Lorenc
Hello, I have Python in my home directory installed and when I tried to install matplotlib in the following way: x...@wp: ~/temp/matplotlib-1.0.0 $which python ~/programs/python/bin/python x...@wp: ~/temp/matplotlib-1.0.0 $python setup.py build basedirlist is: ['/usr/local', '/usr']