Re: [Matplotlib-users] changing the size of a plot point

2008-10-27 Thread Friedrich Hagedorn
On Mon, Oct 27, 2008 at 01:53:24PM -0700, Mathew Yeates wrote: is there a way, when plotting many points, to decrease the size of the point. With the default size I end up with overlapping points so some are not displayed. Do you want to change (decrease) the following values?

Re: [Matplotlib-users] Legend over plot lines

2008-09-26 Thread Friedrich Hagedorn
On Fri, Sep 26, 2008 at 12:52:01PM +0100, Peter Saffrey wrote: Is there a way to automatically resize plots (and subplots) and move/resize plot legends so that they don't obscure the plotted data? I have this problem especially on plots with 4 or 5 tracks. I can post an example, but I

Re: [Matplotlib-users] legend - markerscale does not work

2008-09-24 Thread Friedrich Hagedorn
On Wed, Sep 24, 2008 at 02:29:28PM +0900, Yong-Duk Jin wrote: Dear matplotlib users. I'm using matplotlib 0.98.3 from the packman repository on opensuse 11.0. I tried to adjust the 'markerscale option to enlarge a marker size in a legend. However, it simply did not work even

Re: [Matplotlib-users] Problem with label displaying

2008-09-20 Thread Friedrich Hagedorn
On Sat, Sep 20, 2008 at 04:06:36PM +0200, Laurent Dufrechou wrote: Hello all, I'm trying to show to a friend matplotlib features via pylab interface. (thus to replace matlab/scilab) I've a little problem while I'm trying to display plots into subplots here under vista. If I add a

Re: [Matplotlib-users] save or pickle figure object

2008-09-17 Thread Friedrich Hagedorn
On Wed, Sep 17, 2008 at 12:55:40PM -0700, Ted Drain wrote: I agree completely - I was just pointing that it is possible. I think what people might not be aware of is that it's really an all or nothing proposition. You either jump in completely and pay the large cost to handle this in a

[Matplotlib-users] Python Distribution with matplotlib

2008-07-03 Thread Friedrich Hagedorn
Hello, today I tried to install mpl in my local home directory at work. This debian distribution is very old and I had to compile for my own. But I failed to compile pygtk (special cairo and pango) as a dependency for mpl. So I have two questions: 1. Does you have an advice to compile mpl with

Re: [Matplotlib-users] add an arrow to a lineEnd

2008-06-03 Thread Friedrich Hagedorn
On Tue, Jun 03, 2008 at 03:55:48PM +0200, Friedrich Hagedorn wrote: I want do add an arrow *tip* to a line with the same angle. It should behave like a marker: it should not resize when I zoom in. By, Friedrich

Re: [Matplotlib-users] add an arrow to a lineEnd

2008-06-03 Thread Friedrich Hagedorn
Hello, I want do add an arrow *tip* to a line with the same angle. I have tried this: from pylab import * from matplotlib import collections, transforms def MyArrow(ax, x, y, ang, scale=50, over=.5, color='k'): ar = [(0,0), (-.5,-over), (0,1), (.5,-over), (0,0)] col =

[Matplotlib-users] add an arrow to a lineEnd

2008-06-02 Thread Friedrich Hagedorn
Hello, the original problem that I have is to add an arrow to the end of a plotted line. I tried this from pylab import * x=linspace(0, 1.85, 100) y=sin(x) dx=x[-1] - x[-2] dy=y[-1] - y[-2] plot(x,y,lw=2) arrow(x[-2], y[-2], dx, dy, width=.02, length_includes_head=True,

[Matplotlib-users] New pgf backend for LaTex?

2008-05-23 Thread Friedrich Hagedorn
Hello, are there plan to implement a new backend for the latex proper use which create the drawing comand in the pgf language? With this kind of graphic creation I could overcome all the (font-) scaleing problems I have when I want to include a mpl graphic in my latex document. Even gnuplot has

Re: [Matplotlib-users] New pgf backend for LaTex?

2008-05-23 Thread Friedrich Hagedorn
On Fri, May 23, 2008 at 10:51:05AM -0400, Darren Dale wrote: On Friday 23 May 2008 10:35:14 am Friedrich Hagedorn wrote: Hello, are there plan to implement a new backend for the latex proper use which create the drawing comand in the pgf language? With this kind of graphic creation I

Re: [Matplotlib-users] New pgf backend for LaTex?

2008-05-23 Thread Friedrich Hagedorn
On Fri, May 23, 2008 at 05:30:02PM +0200, Friedrich Hagedorn wrote: The next problem is that the standard size of the mpl graphic (8, 6) inches is too big for my latex document (0.5\linewidth). Therefore I must scale the mpl graphic (\includegraphics[width=0.5\linewidth

[Matplotlib-users] Set the right reply adress

2008-05-22 Thread Friedrich Hagedorn
Hello List-Admin, could you set the right reply-adress in the mails from the matplotlib mailinglist? Everytime when I what to reply to a message I have to set the right email-adress to matplotlib-users@lists.sourceforge.net otherwise the email would sent only as a privat mail. I use mutt

Re: [Matplotlib-users] Legend labels - interaction with functions

2008-05-22 Thread Friedrich Hagedorn
On Thu, May 22, 2008 at 02:52:13PM +0200, David Simpson wrote: This is probably my lack of knowledge of python, but how do I set up legend labels for some bar-plots that have been produced inside a function. For example, the following will nicely plot my bar-plots, but then legend doesn't

Re: [Matplotlib-users] changing ticklabels color

2008-05-22 Thread Friedrich Hagedorn
On Thu, May 22, 2008 at 02:30:24PM +, Chiara Caronna wrote: Hello, I would like to change the color of the yticklabels. I tried to use this command: ax1=p.subplot(212) [...] ax1.set_yticklabels(color='r') * Solution 1: In [1]: ax1=subplot(111) In [2]:

Re: [Matplotlib-users] Set the right reply adress

2008-05-22 Thread Friedrich Hagedorn
On Thu, May 22, 2008 at 05:59:23PM +0300, Jouni K. Seppänen wrote: Friedrich Hagedorn [EMAIL PROTECTED] writes: could you set the right reply-adress in the mails from the matplotlib mailinglist? This is something of a controversial issue. One side is presented at http

Re: [Matplotlib-users] Tick labels and subscripts

2008-05-22 Thread Friedrich Hagedorn
On Thu, May 22, 2008 at 03:25:41PM -0700, Christopher Brown wrote: Hi Users, What is the best way to add a subscript to a tick label using the default font? Hm, could you give a short example of what you want? I do subscripts with this code: In [1]: subplot(111) Out[1]:

Re: [Matplotlib-users] distance between tick label and xlabel

2008-05-21 Thread Friedrich Hagedorn
On Wed, May 21, 2008 at 11:13:55AM -0700, Christopher Brown wrote: I am changing this property, but nothing changes on the figure. From ipython, and when the figure is visible, I type: gca().yaxis.labelpad = 100 but the ylabel doesn't move. I'm in 0.98pre from svn. What am I doing

[Matplotlib-users] Bug in axhline

2008-05-15 Thread Friedrich Hagedorn
Hello, I think the following is'nt right: In [1]: plot([1,2,3]) Out[1]: [matplotlib.lines.Line2D object at 0x8f9b0ec] In [2]: ylim(-4,4) Out[2]: (-4, 4) In [3]: axhline() Out[3]: matplotlib.lines.Line2D object at 0x8f9bc0c In [4]: ylim() Out[4]: (0.0, 3.0) By, Friedrich

Re: [Matplotlib-users] Bug in axhline

2008-05-15 Thread Friedrich Hagedorn
On Thu, May 15, 2008 at 10:20:23AM +0200, Friedrich Hagedorn wrote: Hello, I think the following is'nt right: In [1]: plot([1,2,3]) Out[1]: [matplotlib.lines.Line2D object at 0x8f9b0ec] In [2]: ylim(-4,4) Out[2]: (-4, 4) In [3]: axhline() Out[3]: matplotlib.lines.Line2D object

Re: [Matplotlib-users] Bug in axhline

2008-05-15 Thread Friedrich Hagedorn
On Thu, May 15, 2008 at 01:56:19PM -0500, John Hunter wrote: On Thu, May 15, 2008 at 3:41 AM, Friedrich Hagedorn [EMAIL PROTECTED] wrote: On Thu, May 15, 2008 at 10:20:23AM +0200, Friedrich Hagedorn wrote: Hello, I think the following is'nt right: In [1]: plot([1,2,3]) Out[1