Re: [Matplotlib-users] making publication quality plots

2009-06-03 Thread Paul Anton Letnes
On 30. mai. 2009, at 13.56, John Hunter wrote: On Sat, May 30, 2009 at 3:50 AM, Paul Anton Letnes paul.anton.let...@gmail.com wrote: Hello again, I can set the figure size and font size, that all works fine. However, the legend is prohibitively large: for a plot 3 inches wide (why

Re: [Matplotlib-users] making publication quality plots

2009-06-03 Thread Chaitanya Krishna
Hi Paul, Can you try font.size: 10 legend.fontsize: small [or medium] in your rc file. Defining the fontsize and then defining the fontsize of the xtick labels, legend etc with respect to this font size seems to work better than defining everything by hand. Switching off the legend frame does

Re: [Matplotlib-users] making publication quality plots

2009-06-03 Thread Jae-Joon Lee
On Wed, Jun 3, 2009 at 2:11 AM, Paul Anton Letnes paul.anton.let...@gmail.com wrote: Is this complete enough? If you do the plot, you'll see that the plot Unfortunately not. It is best if you post a stand-alone script that we can simply run with copy-and-paste. is about one column wide (7

[Matplotlib-users] button_press_event: Key presses not recognized?

2009-06-03 Thread Ole Streicher
Hi again, I have another problem: I try to connect Control + mouse drag to some zoom event. On mouse press, I need to check whether the Ctrol key is pressed: 8 import random import sys from PyQt4 import QtGui, QtCore from

Re: [Matplotlib-users] Compability Issues with MatPlotLib?

2009-06-03 Thread John Hunter
On Tue, Jun 2, 2009 at 10:09 AM, Anu Pakanati apakan...@hotmail.com wrote: Lastly, my gcc version is gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) I did have matplotlib and player/stage playing nicely in a previous incarnation, using older versions of both from about 8 months ago. Unfortunately

[Matplotlib-users] Segmentation fault with python 2.6 on 64 bits linux

2009-06-03 Thread Kazansky, Stella (SKAZANSK)
Hello, I am not sure that matplotlib is the cause, we are looking for it, but we are having multiple segfaults using python 2.6 on 64 bits linux boxes. Everything was recompiled for 64 bits. Did anybody encounter similar problem? Thanks smime.p7s Description: S/MIME cryptographic signature

Re: [Matplotlib-users] Segmentation fault with python 2.6 on 64 bits linux

2009-06-03 Thread Michael Droettboom
Can you provide a standalone script that causes the segfault so we can try to reproduce? Backtraces from gdb and valgrind memcheck logs would also be helpful. Mike Kazansky, Stella (SKAZANSK) wrote: Hello, I am not sure that matplotlib is the cause, we are looking for it, but we are

[Matplotlib-users] how to remove a subplot

2009-06-03 Thread TP
Hi everybody, I want to delete a subplot from my figure. How to do that? For example, I would like to remove the right subplot in the following example: from pylab import * ion() f = figure() s = f.add_subplot(121) X1 = arange( 0.0, 5.0, 0.1 ) s.plot( X1, X1**2) s =

Re: [Matplotlib-users] question about stacked histograms

2009-06-03 Thread Amit
Thanks John. The bar_stacked example does not seem to work for histograms, but I'm glad to know that we could manually make the legends. I still do not know how to specify the colors of the stacks in my histogram, so adding the manual legends for them is still a pain -- but at least doable

Re: [Matplotlib-users] how to remove a subplot

2009-06-03 Thread John Hunter
On Wed, Jun 3, 2009 at 12:33 PM, TP paratribulati...@free.fr wrote: Hi everybody, I want to delete a subplot from my figure. How to do that? For example, I would like to remove the right subplot in the following example: from pylab import * ion() f = figure()

[Matplotlib-users] speed of simple plots (using wx)

2009-06-03 Thread Sebastian Haase
Hi, I am still using the old plt package that used to be part of SciPy ( I fixed it up, kept it alive and it runs now fine with numpy). I would really like to switch to matplotlib (using the wx backend) but I'm having concerns regarding speed. So I was wondering what are other people's speed

[Matplotlib-users] Vertical and horizontal lines width

2009-06-03 Thread Nicolas Pourcelot
Hi, I noticed that vertical and horizontal lines with a line width 1 are displayed with a line width of 1 on WxAgg with recent version of matplotlib. I use matplotlib 0.98.5.2 on Windows XP, and Ubuntu Linux 9.04. For example : import pylab pylab.plot([0,0],[0,1],linewidth=*0.5*)

Re: [Matplotlib-users] speed of simple plots (using wx)

2009-06-03 Thread Eric Firing
Sebastian Haase wrote: Hi, I am still using the old plt package that used to be part of SciPy ( I fixed it up, kept it alive and it runs now fine with numpy). I would really like to switch to matplotlib (using the wx backend) but I'm having concerns regarding speed. So I was wondering what