Re: [Matplotlib-users] Latex primed regression?

2012-04-16 Thread Michael Droettboom
What is the math string you are using?  I can't seem to reproduce this with:    "$D_{40}\prime\prime$" What are your math-related rcParams? Mike On 04/15/2012 08:53 PM, Alexander Wagner wrote: Dear Matplotlib users,

Re: [Matplotlib-users] Latex primed regression?

2012-04-16 Thread Alexander Wagner
I'm using  $D_{40}^{\prime\prime}$ I think this is how prime should be used in latex, or? Using mathtext, when i don't include "^" I get Here, the spacing between the primed is too far apart. Also, in regular latex, primed is usually i

Re: [Matplotlib-users] Latex primed regression?

2012-04-16 Thread Alexander Wagner
ps. my math-related rcParams are just the defaults, i think mathtext.cal : cursive mathtext.rm  : serif mathtext.tt  : monospace mathtext.it  : serif:italic mathtext.bf  : serif:bold mathtext.sf  : sans mathtext.fontset : cm mathtext.fa

[Matplotlib-users] Axes.fill_between() for two arbitrary curves

2012-04-16 Thread Damon McDougall
Hi, I have two arrays of coordinates in the x-y plane, z_1 and z_2. The array z_1 encloses a closed, convex and simply connected region (not a circle). The array z_2 encloses another object that is also closed, convex and simply connected. The region enclosed by z_2 is contained entirely withi

Re: [Matplotlib-users] Bug in legend?

2012-04-16 Thread Paul Hobson
On Mon, Apr 16, 2012 at 4:58 AM, Yannick Copin wrote: > Hi List, > > I think I found a bug in legend of a fill command (see attached code and > figure) when the facecolor is 'none' but the alpha is not None (I'm using > latest matplotlib 1.1.0). If confirmed, should I fill in a but report? I see

Re: [Matplotlib-users] How to draw maps like in m_map tool?

2012-04-16 Thread Arnaldo Russo
Hi matplotlib users. Has anyone gave the first steps or finished a patch for this? I don't have enough knowledge to propose one, but I could try to help in any improvement or testing. Thank you, Arnaldo. --- *Arnaldo D'Amaral Pereira Granja Russo* Lab. de Estudos dos Oceanos e Clima Instituto de O

[Matplotlib-users] Bug in Triangulation causes infinite loop if 4 or more duplicate points are used in tricontour()

2012-04-16 Thread Kacper Kowalik
Hi, I haven't been able to pin point it exactly but following script: import matplotlib.pyplot as plt import matplotlib.tri as tri import numpy as np from numpy.random import uniform, seed seed(0) npts = 200 x = uniform(-2,2,npts) y = uniform(-2,2,npts) z = x*np.exp(-x**2-y**2) y[1:3] = x[0] #

Re: [Matplotlib-users] Bug in Triangulation causes infinite loop if 4 or more duplicate points are used in tricontour()

2012-04-16 Thread Damon McDougall
Hi Kacper, Just to be clear, is it tri.Triangulation(x, y) that hangs, or is it plt.tricontour(…)? -- Damon McDougall d.mcdoug...@warwick.ac.uk (mailto:d.mcdoug...@warwick.ac.uk) http://damon.is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United

Re: [Matplotlib-users] Bug in Triangulation causes infinite loop if 4 or more duplicate points are used in tricontour()

2012-04-16 Thread Kacper Kowalik
On 16 Apr 2012 22:31, "Damon McDougall" wrote: > > Hi Kacper, > > Just to be clear, is it tri.Triangulation(x, y) that hangs, or is it plt.tricontour(…)? It's plt.tricontour that hangs, tri.Triangulation properly issues warning about duplicates. Cheers, Kacper > -- > Damon McDougall > d.mcdoug..

Re: [Matplotlib-users] Bug in Triangulation causes infinite loop if 4 or more duplicate points are used in tricontour()

2012-04-16 Thread Damon McDougall
On Monday, 16 April 2012 at 16:34, Kacper Kowalik wrote: > > On 16 Apr 2012 22:31, "Damon McDougall" (mailto:d.mcdoug...@warwick.ac.uk)> wrote: > > > > Hi Kacper, > > > > Just to be clear, is it tri.Triangulation(x, y) that hangs, or is it > > plt.tricontour(…)? > It's plt.tricontour that han

Re: [Matplotlib-users] Latex primed regression?

2012-04-16 Thread Michael Droettboom
This bug was introduced in PR #54.  That tried to fix the behavior of the apostrophe character, but inadvertently made primes smaller as well.  The fix is revert prime to its old size, but make the apostrophe equivalent to "^\prime". Are you able to test the followin

Re: [Matplotlib-users] Latex primed regression?

2012-04-16 Thread Alexander Wagner
Thanks, Mike, everything primed looks nice again. Best wishes, Alex On 17/04/12 7:53 AM, Michael Droettboom wrote: This bug was introduced in PR #54.  That tried to fix the behavior of the apostrophe character, but inadvertently mad