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? pl

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-23 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

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 pylab

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 ma

[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 m

Re: [Matplotlib-users] position of ylabel

2008-06-20 Thread Friedrich Hagedorn
On Thu, Jun 19, 2008 at 12:36:02PM -0500, John Hunter wrote: > On Thu, Jun 19, 2008 at 11:02 AM, John Hunter <[EMAIL PROTECTED]> wrote: > > >> I want to adjust the x position of my ylabel, like > >> > >> subplot(111) > >> ylabel('YLabel', x=-.25, y=.75) > >> > >> the 'y=.75' argument is applied b

[Matplotlib-users] position of ylabel

2008-06-19 Thread Friedrich Hagedorn
Hello, I want to adjust the x position of my ylabel, like subplot(111) ylabel('YLabel', x=-.25, y=.75) the 'y=.75' argument is applied but the 'x=-.2' argument has no affect. But why? Have you any idea to do this? Thank you, Friedrich

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 = collections.PolyCo

Re: [Matplotlib-users] ugly arrow with xpdf

2008-06-03 Thread Friedrich Hagedorn
On Mon, Jun 02, 2008 at 11:17:44PM +0300, Jouni K. Seppänen wrote: > I can confirm this in at least version 0.91.3. The problem seems to be > caused by the midpoint of the stem being included in the path twice in a > row. The following patch removes the midpoint altogether and fixes the > rendering

[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, head_length=s

[Matplotlib-users] ugly arrow with xpdf

2008-06-02 Thread Friedrich Hagedorn
Hello, when I create an arrow with >>> from pylab import * >>> subplot(111) >>> arrow(.5, .5, -.05, .02, lw=5, width=.01) >>> savefig('foo.pdf') and view it with % xpdf foo.pdf then I see on the startpoint an ugly pike. With gv and evince everything is ok. Any idea how to fix it in mpl? Bec

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]{...

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? Wi

[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] 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]: In [2]: xticks

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

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]: setp(ax1.get

[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 an

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] 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 >

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 fol

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]: [] > > In [2]: ylim(-4,4) > Out[2]: (-4, 4) > > In [3]: axhline() > Out[3]: > > In [4]: ylim(

[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]: [] In [2]: ylim(-4,4) Out[2]: (-4, 4) In [3]: axhline() Out[3]: In [4]: ylim() Out[4]: (0.0, 3.0) By, Friedrich - This SF.net email is sponsored