Re: [Matplotlib-users] Axes.bar(orientation='horizontal') doesn't work?

2009-10-06 Thread Eric Firing
Ernest Adrogué wrote: > Hi, > > I'm trying to plot some horizontal bars using the .bar() method: > > import matplotlib.pyplot as plt > fig=plt.figure() > ax=fig.add_subplot(1,1,1) > ax.bar([1,2,3],[4,6,5],orientation='horizontal') Use ax.barh([1,2,3], [4,5,6]) Eric --

[Matplotlib-users] caps on errorbar

2009-10-06 Thread Brent Pedersen
hi, i'm using the exact code pasted below, and copied from: http://matplotlib.sourceforge.net/examples/pylab_examples/errorbar_demo.html?highlight=errorbar i see the vertical error lines, but i'm not able to see the 'cap' as in the codex above, i've tried changing a few parameters in my matplotlib

Re: [Matplotlib-users] saving images using pure matplotlib in Sage cuts off the bottom part (and produces corrupt file?)

2009-10-06 Thread Jae-Joon Lee
On Tue, Oct 6, 2009 at 2:24 PM, Jae-Joon Lee wrote: > 2) f is somehow not flushed when savefig returns (which should happen > if file gets deleted). I meant if the variable "f" gets dereferenced. -JJ -- Come build with

Re: [Matplotlib-users] saving images using pure matplotlib in Sage cuts off the bottom part (and produces corrupt file?)

2009-10-06 Thread Jae-Joon Lee
I'm not sure. In short, what savefig does is (when filename ending with "png" is provided) is following. def savefig(filename): f = open(filename,"wb") write_png(f) I think there are two issue here. 1) write_png does not flush the file : this might be a bug or a feature, I'm not sure. 2)

Re: [Matplotlib-users] saving images using pure matplotlib in Sage cuts off the bottom part (and produces corrupt file?)

2009-10-06 Thread jason-sage
Jae-Joon Lee wrote: > I think this has nothing to do with dpi, but a file flushing issue. > Try something like below with sage (note that the code does not work > with svn version of matplotlib, i'll commit the fix soon). > > import matplotlib > matplotlib.use('Agg') > import matplotlib.pyplot as p

Re: [Matplotlib-users] saving images using pure matplotlib in Sage cuts off the bottom part (and produces corrupt file?)

2009-10-06 Thread Jae-Joon Lee
I think this has nothing to do with dpi, but a file flushing issue. Try something like below with sage (note that the code does not work with svn version of matplotlib, i'll commit the fix soon). import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt fig=plt.figure() plt.plot([1,2

Re: [Matplotlib-users] Basemap drawcoastlines issue

2009-10-06 Thread ringobelingo
Hi Jeff, I had already tried area_thresh, but suffered from the limitation that you pointed out, namely that although the inland waterways disappear, it is at the expense of a lot of land. That's why I wondered if the function might be splittable to avoid such issues. But thanks anyway. Ringo

Re: [Matplotlib-users] Basemap drawcoastlines issue

2009-10-06 Thread ringobelingo
Hi Scott, thanks for your response. This seems like the way to go! Ringo Scott Sinclair-4 wrote: > >>2009/10/1 ringobelingo : >> I would like to add coastlines to a map but do not want interior >> 'coastlines'. At present, without them my continents are not distinct >> enough >> from the dat

[Matplotlib-users] Width of axes tick labels

2009-10-06 Thread Donovan Parks
Hello, I'm new to matplotlib, but have made great progress in using it over the past few days (thanks in no small part to this list). However, I am stuck on trying to determine the width of a y tick label (either in inches or figure space). I know I can get 'Text instances' of the tick labels usin

[Matplotlib-users] Axes.bar(orientation='horizontal') doesn't work?

2009-10-06 Thread Ernest Adrogué
Hi, I'm trying to plot some horizontal bars using the .bar() method: import matplotlib.pyplot as plt fig=plt.figure() ax=fig.add_subplot(1,1,1) ax.bar([1,2,3],[4,6,5],orientation='horizontal') raises an AssertionError: AssertionErrorTraceback (most recent call last)

[Matplotlib-users] Axes3D labels

2009-10-06 Thread William Hall
Does anyone know if it possible to annotate the axes with strings? I've tried a hundred combinations of set_xticklabels with and without set_xticks but absolutely nothing seems to have any effect. Perhaps this is a bug? Perhaps labelling 3d axes is not supported? There's no documentation on this

Re: [Matplotlib-users] error when installing matplotlib -- wx requirement?

2009-10-06 Thread Jouni K . Seppänen
per freem writes: > i am trying to install the recent matplotlib (0.99.1.1) but i am > getting an error about wxPython not being available. The problem is that the tar.gz file includes setup.cfg, and the fix is to delete that file. This is also filed on sourceforge: https://sourceforge.net/tr