Re: [Matplotlib-users] sharex with different tick labels

2012-09-17 Thread Stan West
From: Daniel Welling [mailto:dantwell...@gmail.com] Sent: Thursday, September 13, 2012 16:23 Greetings, all. I have an issue: I have several axes stacked in a column with a common time vector on each x-axis. Each plot is a contour, so overplotting is not an option. In a perfect world, I want

Re: [Matplotlib-users] How to determine position of axes after imshow?

2012-08-14 Thread Stan West
From: Mark Bakker [mailto:mark...@gmail.com] Sent: Thursday, August 09, 2012 14:43 I am glad to see you can reproduce the error, Stan. I am running whatever is default with a PythonXY installation (sorry my windows machine is at work). Strange behavior. The code works fine on my mac (PyQt4 bac

Re: [Matplotlib-users] How to determine position of axes after imshow?

2012-08-09 Thread Stan West
From: Mark Bakker [mailto:mark...@gmail.com] Sent: Tuesday, August 07, 2012 06:42 I tried a few things and found out that doing a pause works. So why does a pause work, but a draw() or show() does not? This all on Windows using the standard PythonXY installation. Here is the code that works (te

Re: [Matplotlib-users] How to determine position of axes after imshow?

2012-08-01 Thread Stan West
From: Mark Bakker [mailto:mark...@gmail.com] Sent: Monday, July 30, 2012 05:54 Hello List, I am trying to determine the position of the axes after an imshow and am having problems. I get a different answer on my Mac (the correct answer) than Windows (the wrong answer). [...] Any thoughts? W

Re: [Matplotlib-users] matplotlit.pyplot.xtick lablel alignment withsubscripts

2012-06-28 Thread Stan West
> From: Andre' Walker-Loud [mailto:walksl...@gmail.com] > Sent: Thursday, June 21, 2012 22:19 > > Hi All, > > Trying to tune alignment of xtick labels. [...] > Try as I might, I can not figure out how to get these to > align how I want (I have tried all the options from > verticalalignment=o

Re: [Matplotlib-users] scatter plot with constant x

2012-06-06 Thread Stan West
> From: Eric Firing [mailto:efir...@hawaii.edu] > Sent: Wednesday, June 06, 2012 13:41 > To: matplotlib-users@lists.sourceforge.net > Subject: Re: [Matplotlib-users] scatter plot with constant x > > On 06/06/2012 06:42 AM, Ethan Gutmann wrote: > >> ... > >> No, but you can do this: > >> > >> plt.

Re: [Matplotlib-users] How to draw a curve until it intersects another curve

2012-05-31 Thread Stan West
> From: Jerzy Karczmarczuk [mailto:jerzy.karczmarc...@unicaen.fr] > Sent: Sunday, May 27, 2012 12:56 > > Gordon Hardmant : > > I ...cannot find a simple way to stop a curve being drawn once it crosses > > another curve. In the attached example, I am trying to draw the solid > > curve only until i

Re: [Matplotlib-users] Eye patterns (Heat plot?)

2012-01-23 Thread Stan West
> From: Russ Dill [mailto:russ.d...@gmail.com] > Sent: Saturday, January 21, 2012 16:31 > > I'm using matplotlib from pylab to generate eye patterns for signal > simulations. ... > Is there any way within matplotlib to do that right now? One way combines Numpy's histogram2d and matplotlib's im

Re: [Matplotlib-users] Warning: converting a masked element to nan

2011-11-04 Thread Stan West
From: questions anon [mailto:questions.a...@gmail.com] Sent: Wednesday, November 02, 2011 17:17 Thanks, I think you are right about the datetimes for the x axis causing the problem. Does anyone have any ideas how to resolve this? Does it help to call ax.xaxis_date() before your calls to plt.plo

Re: [Matplotlib-users] Connecting an arbitrary list of points

2011-08-26 Thread Stan West
From: ben.v.r...@gmail.com [mailto:ben.v.r...@gmail.com] On Behalf Of Benjamin Root Sent: Friday, August 26, 2011 13:11 Actually, that might be useful. The current solution I have is to use the core contouring function in mpl to generate paths, but they doesn't seem to guarantee either clockwise

Re: [Matplotlib-users] Connecting an arbitrary list of points

2011-08-26 Thread Stan West
From: Benjamin Root [mailto:ben.r...@ou.edu] Sent: Friday, August 19, 2011 13:43 I have an arbitrary list of coordinates that I know represent the boundary of a polygon. Is there some sort of function from the contouring or path codes that would allow me to pass in that list and get back the re

Re: [Matplotlib-users] Define minimum precision for tick labels

2011-08-22 Thread Stan West
From: André Dankert [mailto:andre.dank...@googlemail.com] Sent: Friday, August 19, 2011 04:12 I have a minor style problem, but, nevertheless, I can't solve it with googles help. I want to have a minimum precision displayed on my ticks, i.e. if the ticks are -1,-0.5,0,0.5,1 it should be displaye

Re: [Matplotlib-users] Forcing the size of a figure

2011-08-15 Thread Stan West
From: David Just [mailto:just.da...@mayo.edu] Sent: Friday, August 12, 2011 11:05 Now that I'm pre-building all my enlarged interpolated images to scroll through, I'm having trouble forcing the figure/FigureCanvas to be the size I want. I'm trying: fig.set_size_inches(768 / 72.0, 768 / 72.0),

Re: [Matplotlib-users] How to use UTF-8 for labels on Windows XP?

2011-06-09 Thread Stan West
> From: Daniel Mader [mailto:danielstefanma...@googlemail.com] > Sent: Thursday, June 09, 2011 11:59 > > Hi, > > I just noticed this doesn't work here, too, as I expected :( > > with u'äöüß°€' I can print the string, but the labels are still broken > in the plot: > > # -*- coding: utf-8 -*- >

Re: [Matplotlib-users] applying colormap to a line

2011-04-01 Thread Stan West
From: Nat Echols [mailto:nathaniel.ech...@gmail.com] Sent: Thursday, March 31, 2011 16:47 I'd like to divide the line segments up to get a smoother color gradient, but the values are dictated by the experiment, not a mathematical function. so I guess what I'm really asking for is a way to add

Re: [Matplotlib-users] Update values of errorbars [solved]

2010-12-03 Thread Stan West
> From: G. Durin [mailto:g.du...@inrim.it] > Sent: Tuesday, November 23, 2010 08:34 > # Update the error bars > barlinecols[0].set_segments(zip(zip(x-xerr,y), zip(x+xerr,y))) > barlinecols[1].set_segments(zip(zip(x,y-yerr), zip(x,y+yerr))) > > The last lines are a little clumsy, but I could no

Re: [Matplotlib-users] import pylab crashes python

2010-11-19 Thread Stan West
> From: D [mailto:dali...@gmail.com] > Sent: Friday, November 12, 2010 16:52 > > I am running Python 2.5.2 on win xp sp3 on an Intel Core2 Duo. After > installation of matplotlib-1.0.0.win32-py2.5.exe I get a Windows crash > on importing pylab. > import pylab -> An unhandled win32 exception occur

Re: [Matplotlib-users] Update values of errorbars

2010-11-16 Thread Stan West
> From: Gianfranco Durin [mailto:g.du...@inrim.it] > Sent: Wednesday, November 10, 2010 11:32 > > Dear mpl users, > I have the following problem to solve. Imagine to have the > simple example reported on website plotting the errorbars of > some x,y data: ... > and if I change, for instance, y

Re: [Matplotlib-users] fill_between with drawstyle steps?

2010-11-12 Thread Stan West
> From: Thøger Emil Juul Thorsen [mailto:thoe...@fys.ku.dk] > Sent: Tuesday, November 09, 2010 11:10 > > I'm trying to do a fill-between part of a spectrum and its continuum > value. I would strongly prefer the drawstyle to be steps, since each > data point represents a bin (or pixel, to be preci

Re: [Matplotlib-users] Setting tick labels for matshow

2010-11-04 Thread Stan West
> From: Nikolaus Rath [mailto:nikol...@rath.org] > Sent: Tuesday, November 02, 2010 21:38 > > In [16]: matplotlib.__version__ > Out[16]: '1.0.0' > > I attached the result of fig.savefig(). Let's see if it makes > it through > the list. The bug in question was fixed at revision 8652, after 1.0.

Re: [Matplotlib-users] Setting tick labels for matshow

2010-11-02 Thread Stan West
> From: Nikolaus Rath [mailto:nikol...@rath.org] > Sent: Saturday, October 30, 2010 16:17 > > but if I try to do the same think with the Y axis, everything looks > messed up (e.g. the matrix is no longer square): The matrix remains square for me using a build from Subversion. What's your matplo

Re: [Matplotlib-users] Newbie: How to change style of tick labels inloglog plot

2010-11-02 Thread Stan West
From: Gino Serpa [mailto:gino.se...@gmail.com] Sent: Sunday, October 31, 2010 13:52 I am trying to change the format of the tick labels in a loglog plot from exponential to decimal. Right now the labels are 10^2 10 1 10^-1 10^-2 and I would like them to be 100 10 1 0.1 0.01 I tried finding

Re: [Matplotlib-users] stem plots:

2010-10-25 Thread Stan West
> From: Alan G Isaac [mailto:ais...@american.edu] > Sent: Friday, October 22, 2010 13:25 > > On 10/22/2010 12:39 PM, Stan West wrote: > > markerline.set_zorder(markerline.get_zorder() + 0.1) > > Nice idea. > Thanks, You're welcome. Now that I look at it

Re: [Matplotlib-users] merge two axes

2010-10-22 Thread Stan West
> From: Ruggero [mailto:giurr...@gmail.com] > Sent: Thursday, October 21, 2010 17:59 > > I want to merge axes from f1 and f2 in a unique axes (withou splitting > the figure). For example if f1 produces a line and f2 produces another > line I want to see two lines in the same plot at the end. If

Re: [Matplotlib-users] stem plots:

2010-10-22 Thread Stan West
> From: Alan G Isaac [mailto:ais...@american.edu] > Sent: Thursday, October 14, 2010 19:12 > > ax.stem(x, y, '-.') draws the stem second, > so that it is visible on top of the dot. > > Is this intentional? > (I think it looks better with the dot on top.) > How to reverse? I would usually place

Re: [Matplotlib-users] Not seeing middle mouse button events

2010-10-22 Thread Stan West
> From: Brian J. Soher [mailto:bso...@briansoher.com] > Sent: Thursday, October 14, 2010 10:27 > > I'm using matplotlib 0.98.5.2, wxPython version 2.8-msw-unicode, on > Windows XP Professional x64 at work (and 32bit at home). At work I > have a plain old Dell 2 button mouse with a scroll wheel

Re: [Matplotlib-users] Libertine font in Matplotlib?

2010-10-20 Thread Stan West
> From: Thøger Emil Juul Thorsen [mailto:thoe...@fys.ku.dk] > Sent: Monday, October 18, 2010 14:04 > > I'm using the excellent font Linux Libertine for writing my thesis, in > which I do my plotting in matplotlib. I would really love to > be ablu to > have consistent fonts in both text and graph

Re: [Matplotlib-users] Missing Toolbar Button inside Wx Application

2010-10-06 Thread Stan West
From: Sebastian Rhode [mailto:sebrh...@googlemail.com] Sent: Wednesday, September 29, 2010 13:02 if I plot an normal figure the toolbar contains an button (looks like a checkbox), which can be used to edit the lines and axes parameters. But when I embed such a figure in an Wx application, this s

Re: [Matplotlib-users] imshow() and a transparent colormap?

2010-10-01 Thread Stan West
From: Nicolas Bigaouette [mailto:nbigaoue...@gmail.com] Sent: Thursday, September 30, 2010 18:00 What I would like to do it have a colormap which is transparent for lower values of data and opaque for high values, so the blue on the figure would appear white/transparent. Would it suffice for th

Re: [Matplotlib-users] Axes outer position - amount of space for axeslabels

2010-09-23 Thread Stan West
From: Jeremy Lewi [mailto:jl...@intellisis.com] Sent: Friday, September 17, 2010 17:38 Is there a way to get the size of the bounding box for the axes which includes the axes labels and tick marks? It looks like Axes.get_position/set_position refers to the inner position (i.e the actual plot a

Re: [Matplotlib-users] change font name (under certain font.family)

2010-09-02 Thread Stan West
From: Yi Shang [mailto:mirandaisb...@gmail.com] Sent: Friday, August 27, 2010 15:34 from numpy import * from matplotlib import pyplot as plt import pylab params = {'font.size' : 16, 'axes.labelsize' : 16, 'font.style' : 'normal', 'font.family' : 'sans-serif',

Re: [Matplotlib-users] change font name (under certain font.family)

2010-09-01 Thread Stan West
From: Yi Shang [mailto:mirandaisb...@gmail.com] Sent: Friday, August 27, 2010 17:33 Hi Ben, Thanks for the reply. I did try to match font.family and font.$family and I am using matplotlib 0.99.0. I did find something interesting... For testing, I tried only using font.family line, (deleting f

Re: [Matplotlib-users] Animated Line2D

2010-06-22 Thread Stan West
> From: Nie, Jinsuo [mailto:j...@bnl.gov] > Sent: Tuesday, June 22, 2010 09:33 ... > I modified the path_editor.py example in order to make a line editor, as > attached. The path_editor.py worked fine on Qt4Agg. However, in the > line editor, the line was not draggable on the same backend. ...

Re: [Matplotlib-users] qqplot

2010-05-21 Thread Stan West
> From: MONTAGU Thierry [mailto:thierry.mont...@cea.fr] > Sent: Friday, May 21, 2010 09:37 > > has anyone ever tried to make a quantile-quantile plot with pylab? > is there any build in function named say "qqplot" available ? For a plot comparing samples to a theoretical distribution (and if you

Re: [Matplotlib-users] make autoscale_view even less tight?

2010-02-18 Thread Stan West
> From: C M [mailto:cmpyt...@gmail.com] > Sent: Friday, February 12, 2010 17:15 > > I would like to understand your approach better. So far, I can't get > your code to produce the "margins" indicated--but I'm probably > applying it wrongly. I don't know how to force an autoscale, for > example.

Re: [Matplotlib-users] make autoscale_view even less tight?

2010-02-12 Thread Stan West
> From: C M [mailto:cmpyt...@gmail.com] > Sent: Wednesday, February 03, 2010 21:59 > > I'm using autoscale_view for the y axis, but find with a marker size > > about 10, it will autoscale the graphs such that some markers are > bisected by the edges of the frame. I already have it set to: > >

Re: [Matplotlib-users] Cant load file as an array.

2009-10-28 Thread Stan West
From: Piter_ [mailto:x.pi...@gmail.com] Sent: Tuesday, October 27, 2009 14:37 Hi all. I have a problem with loading file of following format: first 1024 rows are tab delimited and contain from 2 to 256 elements (in different files different number of columns) after that 5 empty lines and at the e

Re: [Matplotlib-users] SVG output: possible bug

2009-10-26 Thread Stan West
From: Craig Lang [mailto:cr...@grapheneindustries.com] Sent: Monday, October 26, 2009 13:04 Greetings, I am using matplotlib to generate an SVG plot containing a mixture of Annotations and Circles. I noticed that the annotation text does not appear at exactly the correct location when outputting

Re: [Matplotlib-users] Py2.5.4 on Win7

2009-10-26 Thread Stan West
> From: Werner F. Bruhin [mailto:werner.bru...@free.fr] > Sent: Saturday, October 24, 2009 09:03 > > I got it working by adding "C:\Python25" to the path > environment variable. Works but smells very much like a work around. I'm glad you got things working. For what it's worth, my path contai

Re: [Matplotlib-users] Py2.5.4 on Win7

2009-10-26 Thread Stan West
> From: Werner F. Bruhin [mailto:werner.bru...@free.fr] > Sent: Saturday, October 24, 2009 06:23 > > Installed Py 2.6.3 and I don't see the issue there, but not > all libraries I use are on 2.6 yet. > > So, I thought lets install Python(x, y) and give this a try, > but I can't find a Python 2.

Re: [Matplotlib-users] Py2.5.4 on Win7

2009-10-23 Thread Stan West
> From: Werner F. Bruhin [mailto:werner.bru...@free.fr] > Sent: Friday, October 23, 2009 07:31 > > I am just installing Windows 7 Pro and I am running into a > problem with matplotlib. > > When running e.g. barchart_demo.py I get an error that it can > not find msvcp71.dll (the dll is in C:\Py

Re: [Matplotlib-users] trailing space in text string stripped, making it impossible to right-pad my text

2009-10-02 Thread Stan West
> From: Christopher Barrington-Leigh > [mailto:cpblpublic+nab...@gmail.com] > Sent: Sunday, September 27, 2009 21:58 > > Hello. My problem is as follows: > (ipython --pylab) > > from pylab import * > pp=plot([0,0],[1,1]) > text(xlim()[0],1,'Need padding ',horizontalalignment='left') > tex

Re: [Matplotlib-users] download

2009-09-09 Thread Stan West
> From: Michael Droettboom [mailto:md...@stsci.edu] > Sent: Wednesday, September 09, 2009 08:17 > > This change has gone into effect (for me at least on a Liux > box). Can anyone test Windows and Mac and report back? On Windows 7RC, Firefox 3.5.2 and IE 8.0 see matplotlib-0.99.0.win32-py2.6.ex

Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Stan West
> -Original Message- > From: Shixin Zeng [mailto:zeng.shi...@gmail.com] > Sent: Wednesday, September 02, 2009 16:11 > > While for embeding eps files in word, I've just tried that. MS word > 2007 seems to have some problem on this. See the attached eps > file produced from matplotlib. In

Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Stan West
> On Wed, Sep 2, 2009 at 11:43 AM, Christopher Barker wrote: > > MS simply doesn't lay well with open vector formats, I think PNG with > > the right DPI, etc is still probably your best bet. > > > Yes, I think I have to stick to this option I agree; in my experience, a bitmap such as PNG at about

Re: [Matplotlib-users] Labels cut off with log axes

2008-11-13 Thread Stan West
> Another approach is to use the subplotpars kwarg to adjust > the positioning parameters when initializing the figure. Here's how I like to implement that approach when I want strict dimensions: figW = 6.5 # in inches figH = 7 fig = figure(figsize=(figW, figH), subplotpars=

Re: [Matplotlib-users] How to change yticks on colorbar?

2008-11-06 Thread Stan West
From: Mark Bakker [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2008 10:48 Thanks Stan. I read the docs (which are quite nice), but couldn't find a way to set the ticks after the fact. But your method worked, Mark It seems to me that setting the ticks after the fact is more difficult,

Re: [Matplotlib-users] How to change yticks on colorbar?

2008-11-05 Thread Stan West
From: Mark Bakker [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2008 06:25 Hello list - I am trying to change the yticks on my colorbar (in combination with contourf) and cannot figure out how to do it. Short example: x,y = meshgrid(linspace(0,10),linspace(0,10)) a = contourf(x,y,x,

Re: [Matplotlib-users] Setting tick labelsize programatically

2008-11-05 Thread Stan West
> -Original Message- > From: Joshua J. Kugler [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 04, 2008 18:39 > > On Tuesday 04 November 2008, Joshua J. Kugler said something like: > > > Here is one way to do it:: > > > > > > for label in ax.get_xticklabels() + ax.get_yticklabels()

Re: [Matplotlib-users] ticks label to the right side

2008-06-16 Thread Stan West
Quoting Fabrice Silva: > Using version 0.91.2, I do not manage to push ticks labels to > the right side of the axis, keeping ticks lines on both > sides. How can I do it ? One solution is yax = gca().yaxis yax.set_ticks_position('right') # labels right side; removes left ticks

Re: [Matplotlib-users] backend_wx and 0.98.0

2008-06-13 Thread Stan West
Hi, Andrea. Yes, I bet that upgrading would resolve the issue. However, the issue isn't getting in my way at the moment, since I use the WXAgg backend and it works well as far as I can tell. I mainly wanted to point out for informational purposes -- and I may have been unclear about my point --

Re: [Matplotlib-users] backend_wx and 0.98.0

2008-06-13 Thread Stan West
For what it's worth, the WX backend isn't working for me with wxPython 2.8.4; I get the following when I attempt to show a figure: File "C:\Program Files\Python25\lib\site-packages\matplotlib-0.98.0_r5467-py2.5-win32.egg\mat plotlib\backends\backend_wx.py", line 474, in select self.SelectObj

[Matplotlib-users] Align text using advance width, not glyph width

2008-05-30 Thread Stan West
Hello, all. I've noticed that the alignment of text strings is usually based on the bounding box of the composite glyphs--the painted region. In certain cases, this behavior is producing results that I think are undesirable. One example involves the common case of fonts with tabular figures (num