Re: [Matplotlib-users] tailwidth?

2012-01-12 Thread Jae-Joon Lee
I know this is an old post, but just in case. For arrowstyle=-, they are just lines (well, not exactly as a matter of fact). So, what you need is to change their linewidths. You may do arrow1=pylab.annotate(, xytext=(0.1,0.1),                       xy=(0.9,0.9),fontsize=8,

Re: [Matplotlib-users] WYSIWYG figure

2012-01-12 Thread Petro
Paul Ivanov pivanov...@gmail.com writes: Thanks. The tiling manager was the guilty one (I use AWESOME). The set_size command did not work: Traceback (most recent call last): File /tmp/py2262sxl, line 45, in module fig.set_size_inches(pylab.rcParams['figure.figsize'], forward='True') File

[Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Christophe Pettus
I'm running into something odd in Matplotlib 1.1. In drawing a horizontal bar chart (barh), if the x-axis scale is set to log, the rectangles are not drawn and filled; I just get small ticks at the right-hand position where the rectangle should end. Interestingly, if I add a second, stacked

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Benjamin Root
On Thu, Jan 12, 2012 at 9:03 AM, Christophe Pettus x...@thebuild.com wrote: I'm running into something odd in Matplotlib 1.1. In drawing a horizontal bar chart (barh), if the x-axis scale is set to log, the rectangles are not drawn and filled; I just get small ticks at the right-hand position

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Christophe Pettus
On Jan 12, 2012, at 7:38 AM, Benjamin Root wrote: Does everything work correctly if it is vertical? In other words, use bar() and set the y-axis to log scale? An example script would be useful. No, it doesn't appear to work as a vertical bar chart, either. I've attached a test case below.

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Tony Yu
On Thu, Jan 12, 2012 at 11:39 AM, Christophe Pettus x...@thebuild.comwrote: On Jan 12, 2012, at 7:38 AM, Benjamin Root wrote: Does everything work correctly if it is vertical? In other words, use bar() and set the y-axis to log scale? An example script would be useful. No, it doesn't

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Benjamin Root
On Thu, Jan 12, 2012 at 11:04 AM, Tony Yu tsy...@gmail.com wrote: On Thu, Jan 12, 2012 at 11:39 AM, Christophe Pettus x...@thebuild.comwrote: On Jan 12, 2012, at 7:38 AM, Benjamin Root wrote: Does everything work correctly if it is vertical? In other words, use bar() and set the y-axis

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Tony Yu
On Thu, Jan 12, 2012 at 12:14 PM, Benjamin Root ben.r...@ou.edu wrote: On Thu, Jan 12, 2012 at 11:04 AM, Tony Yu tsy...@gmail.com wrote: On Thu, Jan 12, 2012 at 11:39 AM, Christophe Pettus x...@thebuild.comwrote: On Jan 12, 2012, at 7:38 AM, Benjamin Root wrote: Does everything work

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread G Jones
I think this is because the bar is going from zero to your value, so the left edge of the rectangle becomes log(0). I see this when using the 'k' and 'l' keys to interactively put a histogram on a log scale. Passing in log=True for hist fixes this. I'm sure there's something similar that can be

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Benjamin Root
On Thu, Jan 12, 2012 at 11:20 AM, Tony Yu tsy...@gmail.com wrote: On Thu, Jan 12, 2012 at 12:14 PM, Benjamin Root ben.r...@ou.edu wrote: On Thu, Jan 12, 2012 at 11:04 AM, Tony Yu tsy...@gmail.com wrote: On Thu, Jan 12, 2012 at 11:39 AM, Christophe Pettus x...@thebuild.comwrote: On

[Matplotlib-users] [Matplotlib] Best way to use the time

2012-01-12 Thread Fabien Lafont
I'm recording live data and I want to record at the same moment the time (to plot MyData Vs Time). Do you know the bast way to do it because it exists a lot of different classes for that? Fabien -- RSA(R) Conference 2012

[Matplotlib-users] making multi panel figures

2012-01-12 Thread Michael Rawlins
I have about 140 lines of code that makes a map. I'd like to turn it into a program which makes a multiple panel (map) figure. I understand that subplot will help to do this. Ideally I would like the 140 lines to be like a subroutine called in a loop. In the current code there are two

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Christophe Pettus
On Jan 12, 2012, at 9:31 AM, Benjamin Root wrote: D'oh! Of course, I missed that tiny little detail. Hmm, so the auto-detection would have been useless in this case because the scale of the axes was set after the fact. Maybe the log kwarg should be in a more prominent location in the

Re: [Matplotlib-users] making multi panel figures

2012-01-12 Thread Benjamin Root
Just a quick suggestion for cleaning up your code, please look into the argparse module to make command-line parsing so much easier to use. http://docs.python.org/dev/library/argparse.html Ben Root -- RSA(R) Conference

[Matplotlib-users] Figure area size questions

2012-01-12 Thread Christophe Pettus
My apologies for two totally noob questions, but I can't quite seem to find these in the docs; a pointer would be great... 1. I would like to position a legend outside of the main plot area. The positioning part works great, but the legend is clipped to the pre-existing figure dimensions; how

Re: [Matplotlib-users] Figure area size questions

2012-01-12 Thread Benjamin Root
On Thu, Jan 12, 2012 at 12:09 PM, Christophe Pettus x...@thebuild.comwrote: My apologies for two totally noob questions, but I can't quite seem to find these in the docs; a pointer would be great... No problem. That is what we are here for. 1. I would like to position a legend outside of

Re: [Matplotlib-users] Figure area size questions

2012-01-12 Thread Christophe Pettus
On Jan 12, 2012, at 10:18 AM, Benjamin Root wrote: fig.savefig('foobar.png, bbox_inches='tight', pad_inches=0.25, bbox_extra_artists=[leg]) [...] In mpl v1.1.0, we introduced a function called tight_layout which should help with such things. Admittedly, it would be nice if tight_layout

Re: [Matplotlib-users] making multi panel figures

2012-01-12 Thread Michael Rawlins
On 01/12/12 Ben Root wrote: Just a quick suggestion for cleaning up your code, please look into the argparse module to make command-line parsing so much easier to use. http://docs.python.org/dev/library/argparse.html Ben Root Command line parsing?  I'm new to python and matplotlib and

Re: [Matplotlib-users] making multi panel figures

2012-01-12 Thread Benjamin Root
On Thu, Jan 12, 2012 at 2:20 PM, Michael Rawlins rawlin...@yahoo.comwrote: On 01/12/12 Ben Root wrote: Just a quick suggestion for cleaning up your code, please look into the argparse module to make command-line parsing so much easier to use. http://docs.python.org/dev/library/argparse.html

Re: [Matplotlib-users] making multi panel figures

2012-01-12 Thread Michael Rawlins
On 01/12/12 Ben Root wrote: On Thu, Jan 12, 2012 at 2:20 PM, Michael Rawlins rawlin...@yahoo.com wrote: On 01/12/12 Ben Root wrote: Just a quick suggestion for cleaning up your code, please look into the argparse module to make command-line parsing so much easier to use.

Re: [Matplotlib-users] making multi panel figures

2012-01-12 Thread Benjamin Root
On Thu, Jan 12, 2012 at 4:00 PM, Michael Rawlins rawlin...@yahoo.comwrote: On 01/12/12 Ben Root wrote: On Thu, Jan 12, 2012 at 2:20 PM, Michael Rawlins rawlin...@yahoo.comwrote: On 01/12/12 Ben Root wrote: Just a quick suggestion for cleaning up your code, please look into the argparse

Re: [Matplotlib-users] making multi panel figures

2012-01-12 Thread Michael Rawlins
On 01/12/12 Ben Root wrote: On Thu, Jan 12, 2012 at 4:00 PM, Michael Rawlins rawlin...@yahoo.com wrote: On 01/12/12 Ben Root wrote: On Thu, Jan 12, 2012 at 2:20 PM, Michael Rawlins rawlin...@yahoo.com wrote: On 01/12/12 Ben Root wrote: Just a quick suggestion for cleaning up your code,

Re: [Matplotlib-users] making multi panel figures

2012-01-12 Thread Benjamin Root
On Thu, Jan 12, 2012 at 4:32 PM, Michael Rawlins rawlin...@yahoo.comwrote: On 01/12/12 Ben Root wrote: On Thu, Jan 12, 2012 at 4:00 PM, Michael Rawlins rawlin...@yahoo.comwrote: On 01/12/12 Ben Root wrote: On Thu, Jan 12, 2012 at 2:20 PM, Michael Rawlins rawlin...@yahoo.comwrote: On