Re: [Matplotlib-users] Suggestion for annotation arrow clipping

2011-09-14 Thread Daniel Hyams
You are correct JJ; the annotation_clip=False attribute was exactly what I was after, but somehow missed it in the docs :(. On Wed, Sep 14, 2011 at 9:09 PM, Jae-Joon Lee wrote: > On Mon, Sep 12, 2011 at 3:20 AM, Daniel Hyams wrote: >> I would suggest the following modification to Annotation.dr

Re: [Matplotlib-users] Suggestion for annotation arrow clipping

2011-09-14 Thread Jae-Joon Lee
On Mon, Sep 12, 2011 at 3:20 AM, Daniel Hyams wrote: > I would suggest the following modification to Annotation.draw in > text.py.  All it does is set a clip box so that the annotation and > arrow is still drawn, but the arrow is clipped at the axes boundary. > It is a much nicer effect than the a

Re: [Matplotlib-users] superimposition of Cartesian projection axis on a polar axis on the same position

2011-09-14 Thread Jae-Joon Lee
On Thu, Sep 15, 2011 at 5:08 AM, Youngung Jeong wrote: > but since contour function does not plot on the polar coordinate system I think this is not True, but I may misunderstood you. Can you post an example that does not work? Here is a simple example that shows it does work. But I hardly use po

Re: [Matplotlib-users] superimposition of Cartesian projection axis on a polar axis on the same position

2011-09-14 Thread Jae-Joon Lee
On Thu, Sep 15, 2011 at 6:18 AM, Benjamin Root wrote: > There are some ways to do this, but I haven't tried them myself. > > http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/axislines.html > > Ben Root > You may better stick to the subplot with polar projection if your original data

Re: [Matplotlib-users] superimposition of Cartesian projection axis on a polar axis on the same position

2011-09-14 Thread Jae-Joon Lee
On Thu, Sep 15, 2011 at 5:08 AM, Youngung Jeong wrote: > But it only gives one axis added to 'fig.axes'. > Is there any work-around? Or am I missing some other feature of matplotlib? Somehow, this is not clearly documented for the subplot command. You need to use label parameter to create multipl

Re: [Matplotlib-users] x, y labels with varying font styles

2011-09-14 Thread Benjamin Root
On Wed, Sep 14, 2011 at 4:34 PM, CAB wrote: > > > But now, let's say I want to italicize only the 'f' and 'x'. I can't find > any easy way to do that while retaining the Arial font. > > And no, I don't want to use TeX. Target users' computers might not have > it. > That's fine, that's why matpl

[Matplotlib-users] x, y labels with varying font styles

2011-09-14 Thread CAB
Hey, All, I've combed the documentation ad nauseum, but I can't find a solution for this one, besides a very brute-force one. Let's say I've set my default sans-serif font as 'Arial'.  Fine. Now, let's say, in a standard plot, I set the x label of this plot using something like: matplotlib.pyp

Re: [Matplotlib-users] superimposition of Cartesian projection axis on a polar axis on the same position

2011-09-14 Thread Benjamin Root
On Wed, Sep 14, 2011 at 3:08 PM, Youngung Jeong wrote: > Hi, > > I have x-y grid data with z values and want to have a pixel view and > contour view at the same time on the same position. Both cases should have > polar coordinate system but since contour function does not plot on the > polar coord

[Matplotlib-users] superimposition of Cartesian projection axis on a polar axis on the same position

2011-09-14 Thread Youngung Jeong
Hi, I have x-y grid data with z values and want to have a pixel view and contour view at the same time on the same position. Both cases should have polar coordinate system but since contour function does not plot on the polar coordinate system, it is plotted on a rectilinear projection with conver

[Matplotlib-users] Hatching linewidth?

2011-09-14 Thread Jeffrey Blackburne
Hi, I am trying to create a hatched region, with a "diagonal lines" hatch pattern. When using the PS backend, the hatch lines come out very narrow. Is there a way to increase the thickness of the hatch lines? I am using mpl version 1.0.1. I think this question has been asked before (e.g., i

Re: [Matplotlib-users] pylab collides with fmin?

2011-09-14 Thread Eric Firing
On 09/14/2011 09:17 AM, Raymond Hawkins wrote: > I'm getting odd behavior when I try to use fmin and pylab in the same > program. The issue is illustrated in the code snippet below. As written, fmin > won't work: the "print xopt" simply returns the contents of x0 as assigned in > the line before

Re: [Matplotlib-users] pylab collides with fmin?

2011-09-14 Thread Benjamin Root
On Wed, Sep 14, 2011 at 2:17 PM, Raymond Hawkins wrote: > I'm getting odd behavior when I try to use fmin and pylab in the same > program. The issue is illustrated in the code snippet below. As written, > fmin won't work: the "print xopt" simply returns the contents of x0 as > assigned in the line

[Matplotlib-users] Hatching linewidth?

2011-09-14 Thread Jeffrey Blackburne
Hi, I am trying to create a hatched region, with a "diagonal lines" hatch pattern. When using the PS backend, the hatch lines come out very narrow. Is there a way to increase the thickness of the hatch lines? I am using mpl version 1.0.1. I think this question has been asked before (e.g., i

[Matplotlib-users] pylab collides with fmin?

2011-09-14 Thread Raymond Hawkins
I'm getting odd behavior when I try to use fmin and pylab in the same program. The issue is illustrated in the code snippet below. As written, fmin won't work: the "print xopt" simply returns the contents of x0 as assigned in the line before fmin. If the "from pylab import *" line is commented o