Re: [Matplotlib-users] Log scale for horizontal bar chart (2 bugs)

2009-10-15 Thread Jae-Joon Lee
barh takes an optional argument "log". set this True (or you may set "left" with some meaningful value, other than 0) http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.barh -JJ On Wed, Oct 14, 2009 at 4:30 PM, Donovan Parks wrote: > Hello, > > I've encountered two bugs r

Re: [Matplotlib-users] how to customize informations given by the navigation toolbar ?

2009-10-15 Thread Jae-Joon Lee
It is possible but not so fancy. Regards, -JJ clf() ax1= subplot(111) ax2= ax1.twiny() ax2.set_xlim(0,10) def report_ax1ax2(x2, y2): # x2, y2 : data coordinate in ax2 xy_pixel = ax2.transData.transform_point((x2,y2)) x1, y1 = ax1.transData.inverted().transform_point(xy_pixel) re

Re: [Matplotlib-users] [Solved] Little issue with blitting technique

2009-10-15 Thread Laurent Dufréchou
Hi Auré, Taking this example (FPS is computed at the end of the loop each 100 frames): (this is the same example as you but not using FileUtils10) import sys import pylab as p import numpy as npy import time ax2 = p.subplot(212) ax

[Matplotlib-users] all fonts to sans-serif?

2009-10-15 Thread Christian Meesters
Hi, I'd like to have all sub-fonts (labels, tick labels, text) sans-serif for a series of plots per default. However the appropriate settings in .matplotlibrc apparently don't work and this also does not work: import matplotlib as mpl mpl.rcParams['text.usetex'] = True mpl.rcParams['font.family']

Re: [Matplotlib-users] Arrows in polar plot at zero degree

2009-10-15 Thread Marie-Therese Horstmann
Thank you, Scott and Matthias! I was working with matplotlib-version 0.98xxx.I updated it, and now the zero arrow is drawn correctly. Thank you for your help! Kind regards, Marie-Therese -- Come build with us! The Bla

[Matplotlib-users] how to customize informations given by the navigation toolbar ?

2009-10-15 Thread LB
Hi, I'm using the twiny fonction to plot two functions on the same axes. I would like to have both informations displayed on the navigation bar. Now, I have : pan/zoom : x=220, y=80 Is-it possible to customize the toolbar in order to have pan/zoom : x1=220, x2=300, y=80 -- LB -

Re: [Matplotlib-users] [Solved] Little issue with blitting technique

2009-10-15 Thread Auré Gourrier
>On Tue, Oct 13, 2009 at 5:06 PM, Laurent Dufr?chou > wrote: >> Hey, coparing on how GTK2 example is done I've seen a difference between the >> two! >> >> In QT4Agg example and WX example the code use: >> >> canvas.copy_from_bbox(ax.bbox) >> replacing all occurrence of ax.bbox with ax.get_figure(

[Matplotlib-users] Arrows in polar plot at zero degree

2009-10-15 Thread Marie-Therese Horstmann
Hello everybody, I currently experience some problem with arrows in polar plots. Everything is fine, as long as the arrow does not cross the zero line. Here is an example from the matplotlib gallery (http://matplotlib.sourceforge.net/examples/pylab_examples/polar_demo.html), but with an arrow poi