[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 lib/matplotlib/b

[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] 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], bott

Re: [Matplotlib-users] Histograms

2011-09-28 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 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 the Matplotlib > bo

Re: [Matplotlib-users] Histograms

2011-09-28 Thread Michal
stogram_demo_extended.html > http://matplotlib.sourceforge.net/examples/pylab_examples/table_demo.html > > for stacked bars, then look at code magic. > > I'm new user to matplotlib also, and was looking for easy way to create > stacked bars some time ago, but unfortunately it

[Matplotlib-users] Histograms

2011-09-27 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 http://212.182.0.171/cgi-bin/dwww/usr/share/doc/gnuplot-doc/examp

[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'] ===