[Matplotlib-users] Bar graphs showing up incorrectly until they are resized:

2012-02-23 Thread federico vaggi
Hi, I am using matplotlib to draw a few bar plots. The library works wonderfully, but the figures are drawn incorrectly until they are resized Here is the figure before resizing: http://imgur.com/MKATg here is after resizing: http://imgur.com/bSiOT It seems that the rectangles of the bar

[Matplotlib-users] Number of decimal places

2012-02-23 Thread Nils Wagner
Hi all, How can I increase the number of decimal places in yticks ? Nils from matplotlib.ticker import ScalarFormatter formatter = ScalarFormatter(useMathText=True,useOffset=False) formatter.set_scientific(True) formatter.set_powerlimits((-12,12)) print dir (formatter) import

Re: [Matplotlib-users] problems installaling matplotlib on ubuntu 11.10

2012-02-23 Thread avalle
Thank you all for your help Using sudo generates an error, without it everything run ok. :~$ sudo python -c import numpy; print numpy.__version__ Traceback (most recent call last): File string, line 1, in module File /usr/local/lib/python2.7/dist-packages/numpy/__init__.py, line 137, in

Re: [Matplotlib-users] problems installaling matplotlib on ubuntu 11.10

2012-02-23 Thread Scott Sinclair
On Feb 23, 2012 1:39 PM, ava...@famaf.unc.edu.ar wrote: should I reinstall numpy? No need. You should be able to build matplotlib without sudo and then install with sudo python setup.py build sudo python setup.py install Cheers, Scott

[Matplotlib-users] Issues with clang when building on MacOS 10.7

2012-02-23 Thread Thomas Robitaille
Hello, I am trying to build the latest version of matplotlib from the git repository (1cd07a6c) on MacOS 10.7, and regardless of whether I build using the make.osx file or just 'python setup.py build', the C files get compiled with clang, and clang raises an error on one of the files:

[Matplotlib-users] Matplotlib gallery

2012-02-23 Thread Nicolas Rougier
I've seen the discussion around the re-organization of the matplotlib gallery. If that might help, here is a link to a small gallery I made. The overall organization is simply based on subdirectories so maybe it could be a (temporary) solution for the matplotlib gallery (just matter of moving

Re: [Matplotlib-users] Issues with clang when building on MacOS 10.7

2012-02-23 Thread Michael Droettboom
It looks like a bug in agg that the stricter clang is picking up. If you change agg24/include/agg_renderer_outline_aa.h:1368 to read: const line_profile_aa profile() { return *m_profile; } does that help? (There's probably other cases like this behind it). I don't have a complete OS-X

Re: [Matplotlib-users] Issues with clang when building on MacOS 10.7

2012-02-23 Thread Michael Droettboom
I got my OS-X machine going again -- I'm looking into this further now. Mike On 02/23/2012 10:19 AM, Michael Droettboom wrote: It looks like a bug in agg that the stricter clang is picking up. If you change agg24/include/agg_renderer_outline_aa.h:1368 to read: const line_profile_aa

Re: [Matplotlib-users] Bar graphs showing up incorrectly until they are resized:

2012-02-23 Thread Benjamin Root
On Thu, Feb 23, 2012 at 5:02 AM, federico vaggi vaggi.feder...@gmail.comwrote: Hi, I am using matplotlib to draw a few bar plots. The library works wonderfully, but the figures are drawn incorrectly until they are resized Here is the figure before resizing: http://imgur.com/MKATg here

Re: [Matplotlib-users] Matplotlib gallery

2012-02-23 Thread Benjamin Root
On Thu, Feb 23, 2012 at 8:14 AM, Nicolas Rougier nicolas.roug...@inria.frwrote: I've seen the discussion around the re-organization of the matplotlib gallery. If that might help, here is a link to a small gallery I made. The overall organization is simply based on subdirectories so maybe

Re: [Matplotlib-users] Matplotlib gallery

2012-02-23 Thread Jerzy Karczmarczuk
Nicolas Rougier : I've seen the discussion around the re-organization of the matplotlib gallery. If that might help, here is a link to a small gallery I made. The overall organization is simply based on subdirectories so maybe it could be a (temporary) solution for the matplotlib gallery

Re: [Matplotlib-users] Bar graphs showing up incorrectly until they are resized:

2012-02-23 Thread federico vaggi
Hi Ben, In the pre-resizing pictures, each bar is drawn as two rectangles, the first until the lower margin of the standard deviation, the second until the mean. It looks like it draws one rectangle from: 0:(MEAN-STD) and another from: MEAN-STD to MEAN+STD After resizing, it is just a single

[Matplotlib-users] surface plot

2012-02-23 Thread David Craig
Hi, I have an array defined by 3 variables p(x,z,t). I would like to produce a surface plot with colors defined by p and animate it. That is plot the value of p at all x and z, over time (t). My code to get p is below but I really have no idea how to plot this. Anyone know the best way to go

Re: [Matplotlib-users] surface plot

2012-02-23 Thread Benjamin Root
On Thu, Feb 23, 2012 at 10:14 AM, David Craig dcdavem...@gmail.com wrote: Hi, I have an array defined by 3 variables p(x,z,t). I would like to produce a surface plot with colors defined by p and animate it. That is plot the value of p at all x and z, over time (t). My code to get p is below

Re: [Matplotlib-users] Matplotlib gallery

2012-02-23 Thread Nicolas Rougier
I agree, but the current matplotlib gallery is rather clueless about what the examples are related to until you click an image. I'm personally using the gallery by looking at an example that match what I've in mind most closely and then look at the code. But you're right, some structure(s)

Re: [Matplotlib-users] Bar graphs showing up incorrectly until they are resized:

2012-02-23 Thread federico vaggi
I think you are correct - and I think the fact that the line width of the error bar is larger (compared to the size of the rectangle) gives the impression the top rectangle is actually darker. I see - it's just a matter of playing around with the error bar properties to make it look pretty.

[Matplotlib-users] Fwd: Matplotlib gallery

2012-02-23 Thread josef . pktd
I will never get use to reply-all -- Forwarded message -- From: josef.p...@gmail.com Date: Thu, Feb 23, 2012 at 11:31 AM Subject: Re: [Matplotlib-users] Matplotlib gallery To: Nicolas Rougier nicolas.roug...@inria.fr On Thu, Feb 23, 2012 at 11:24 AM, Nicolas Rougier

Re: [Matplotlib-users] Fwd: Matplotlib gallery

2012-02-23 Thread Tony Yu
On Thu, Feb 23, 2012 at 11:32 AM, josef.p...@gmail.com wrote: I will never get use to reply-all -- Forwarded message -- From: josef.p...@gmail.com Date: Thu, Feb 23, 2012 at 11:31 AM Subject: Re: [Matplotlib-users] Matplotlib gallery To: Nicolas Rougier

Re: [Matplotlib-users] Fwd: Matplotlib gallery

2012-02-23 Thread Benjamin Root
On Thu, Feb 23, 2012 at 10:41 AM, Tony Yu tsy...@gmail.com wrote: On Thu, Feb 23, 2012 at 11:32 AM, josef.p...@gmail.com wrote: I will never get use to reply-all -- Forwarded message -- From: josef.p...@gmail.com Date: Thu, Feb 23, 2012 at 11:31 AM Subject: Re:

Re: [Matplotlib-users] Issues with clang when building on MacOS 10.7

2012-02-23 Thread Michael Droettboom
It seems this was the only source of errors. There is a pull request here: https://github.com/matplotlib/matplotlib/pull/713 There are plenty of warnings that should probably also be dealt with, but this at least allows compilation to complete for now. Mike On 02/23/2012 10:27 AM, Michael

Re: [Matplotlib-users] Fwd: Matplotlib gallery

2012-02-23 Thread Filipe Pires Alvarenga Fernandes
Just a suggestion. All these ideas sounds like a google code-in task. http://code.google.com/intl/pt-BR/opensource/gci/2010-11/ I do not know if Matplotlib participated in the past, if not take a look of last years sympy task list: https://github.com/sympy/sympy/wiki/GCI-2011-Task-list If the

Re: [Matplotlib-users] Number of decimal places

2012-02-23 Thread Eric Firing
On 02/23/2012 01:13 AM, Nils Wagner wrote: Hi all, How can I increase the number of decimal places in yticks ? One way is to install mpl from git master. The ScalarFormatter handles this situation better now: In [15]: print '\n'.join([tl.get_text() for tl in ax.get_yticklabels()])

Re: [Matplotlib-users] Fwd: Matplotlib gallery

2012-02-23 Thread Benjamin Root
On Thu, Feb 23, 2012 at 10:55 AM, Filipe Pires Alvarenga Fernandes ocef...@gmail.com wrote: Just a suggestion. All these ideas sounds like a google code-in task. http://code.google.com/intl/pt-BR/opensource/gci/2010-11/ I do not know if Matplotlib participated in the past, if not take a

[Matplotlib-users] Changing the Dash Spacing?

2012-02-23 Thread Jeff Klukas
Hello all, I would like to make small figures (about 3 wide) so that they are exactly the right size for a LaTeX document I am preparing. This should be straightforward, but I fear I am running into inherent limitations in the matplotlib design. The particular problem is that the dash spacing

[Matplotlib-users] Possible to make linewidth larger in Legend?

2012-02-23 Thread Jonno
I need to use a small linewidth in my plot but the color is still very clear. However in the legend the small, thin straight line makes it difficult to tell the color. Is there a way to make the linewidth larger just in the legend but not on the plot?

Re: [Matplotlib-users] Changing the Dash Spacing?

2012-02-23 Thread Eric Firing
On 02/23/2012 10:46 AM, Jeff Klukas wrote: Hello all, I would like to make small figures (about 3 wide) so that they are exactly the right size for a LaTeX document I am preparing. This should be straightforward, but I fear I am running into inherent limitations in the matplotlib design.