Re: [Matplotlib-users] Polar plot - problem with negative values for radius

2011-02-21 Thread Stephan Markus
I am using a workaround now. But that is a hackery solution. Before plotting my data I convert it to dBs and limit it to the lowest value I want to display. Then I plot it using a regular polar plot with a custom formatting function that sets the tick labels with respect to the data offset. Since

Re: [Matplotlib-users] Polar plot - problem with negative values for radius

2011-02-17 Thread Benjamin Root
On Thu, Feb 17, 2011 at 4:12 AM, Stephan Markus wrote: > > Small update: > > I tried the very same code with MPL 1.0.1 and Python 2.5.0 on Linux 64 and > Python 2.5.4 on Win32 and it runs w/o throwing any exceptions there! > > But: the behaviour is still not that what I expected. Still these issu

Re: [Matplotlib-users] Polar plot - problem with negative values for radius

2011-02-17 Thread Stephan Markus
Small update: I tried the very same code with MPL 1.0.1 and Python 2.5.0 on Linux 64 and Python 2.5.4 on Win32 and it runs w/o throwing any exceptions there! But: the behaviour is still not that what I expected. Still these issues are remaining: - the smallest magnitude (center magnitude in othe

Re: [Matplotlib-users] Polar plot - problem with negative values for radius

2011-02-17 Thread Stephan Markus
Ben, I should have mentioned that I already tried that. When I set the rscale to 'log' the plot crashes when zooming or mpl cannot even create it. Maybe some example code will help: from numpy import arange, sin, pi, cos, ones from matplotlib.backends.backend_tkagg import Figure

Re: [Matplotlib-users] Polar plot - problem with negative values for radius

2011-02-16 Thread Benjamin Root
On Wed, Feb 16, 2011 at 9:16 AM, Stephan Markus wrote: > > Hi, > > I am trying to display some complex values in a polar plot. Displaying > linear magnitude vs. angle - of course - works without any issues. But I'd > rather display the logarithmic magnitute vs. angle. Since the data for the > rad

[Matplotlib-users] Polar plot - problem with negative values for radius

2011-02-16 Thread Stephan Markus
Hi, I am trying to display some complex values in a polar plot. Displaying linear magnitude vs. angle - of course - works without any issues. But I'd rather display the logarithmic magnitute vs. angle. Since the data for the radius gets negative then, it'll be wrapped around / rotated by 180deg b

Re: [Matplotlib-users] polar plot

2010-08-23 Thread Friedrich Romstedt
2010/8/20 Michael Droettboom : >> Yeah, it's my issue, but I'm not happy with fixing it.  Currently, >> matplotlib forces the xticks (i.e., the theta ticks) to be at sensible >> values via .set_xticks() and .set_xlabels() (projections/polar.py). >> >> I'm coding a matplotlib extension package which

Re: [Matplotlib-users] polar plot

2010-08-20 Thread Benjamin Root
On Fri, Aug 20, 2010 at 8:33 AM, Michael Droettboom wrote: > On 08/19/2010 05:53 PM, Friedrich Romstedt wrote: > > 2010/8/19 Michael Droettboom: > > > >> On 08/18/2010 06:03 PM, Friedrich Romstedt wrote: > >> > >>> Is the attached issue with a plain polar axes already fixed? I never > >>> encoun

Re: [Matplotlib-users] polar plot

2010-08-20 Thread Michael Droettboom
On 08/19/2010 05:53 PM, Friedrich Romstedt wrote: > 2010/8/19 Michael Droettboom: > >> On 08/18/2010 06:03 PM, Friedrich Romstedt wrote: >> >>> Is the attached issue with a plain polar axes already fixed? I never >>> encountered this before. 344 degrees happens to be 6.0 rad. I'm on >>

Re: [Matplotlib-users] polar plot

2010-08-19 Thread Friedrich Romstedt
2010/8/19 Michael Droettboom : > On 08/18/2010 06:03 PM, Friedrich Romstedt wrote: >> Is the attached issue with a plain polar axes already fixed?  I never >> encountered this before.  344 degrees happens to be 6.0 rad.  I'm on >> svn 8626. > > How are you creating that graph?  By default, polar pl

Re: [Matplotlib-users] polar plot

2010-08-19 Thread Michael Droettboom
On 08/18/2010 06:03 PM, Friedrich Romstedt wrote: > 2010/8/18 Michael Droettboom: > >> This bug (that the r-axis labels are in the wrong place) should now be fixed >> in r8651. This doesn't, unfortunately, address the original question about >> annular plots. >> > Is the attached issue w

Re: [Matplotlib-users] polar plot

2010-08-18 Thread Jae-Joon Lee
On Wed, Aug 18, 2010 at 10:03 PM, Nils Wagner wrote: > I would like to plot an annulus. > With mpl_toolkits.axisartist, it is possible to make an axes of annulus. But, the resulting axes is not fully compatible with the original matplotlib axes. Most of the tick-related commands won't work and yo

Re: [Matplotlib-users] polar plot

2010-08-18 Thread Friedrich Romstedt
2010/8/18 Michael Droettboom : > This bug (that the r-axis labels are in the wrong place) should now be fixed > in r8651.  This doesn't, unfortunately, address the original question about > annular plots. Is the attached issue with a plain polar axes already fixed? I never encountered this before

Re: [Matplotlib-users] polar plot

2010-08-18 Thread Michael Droettboom
On 08/18/2010 09:51 AM, Benjamin Root wrote: On Wed, Aug 18, 2010 at 8:03 AM, Nils Wagner mailto:nwag...@iam.uni-stuttgart.de>> wrote: Hi all, Is it possible to create a polar plot, where the lower bound of the radius is larger than zero ? I would like to plot an annulus.

Re: [Matplotlib-users] polar plot

2010-08-18 Thread Nils Wagner
On Wed, 18 Aug 2010 08:51:31 -0500 Benjamin Root wrote: > On Wed, Aug 18, 2010 at 8:03 AM, Nils Wagner > wrote: > >> Hi all, >> >> Is it possible to create a polar plot, where the lower >> bound of the radius is larger than zero ? >> I would like to plot an annulus. >> >> Any pointer would be a

Re: [Matplotlib-users] polar plot

2010-08-18 Thread Benjamin Root
On Wed, Aug 18, 2010 at 8:03 AM, Nils Wagner wrote: > Hi all, > > Is it possible to create a polar plot, where the lower > bound of the radius is larger than zero ? > I would like to plot an annulus. > > Any pointer would be appreciated. > > Thanks in advance > >

[Matplotlib-users] polar plot

2010-08-18 Thread Nils Wagner
Hi all, Is it possible to create a polar plot, where the lower bound of the radius is larger than zero ? I would like to plot an annulus. Any pointer would be appreciated. Thanks in advance Nils -

Re: [Matplotlib-users] polar plot fills entire plot while drawing line, bug or feature?

2009-08-06 Thread Eric Firing
azerith wrote: > Hi, I'm new to matplotlib and in need to draw a single impulse on a polar > plot, but don't know how to do it, so i just draw a line using > pylab.polar([0,0],[0,100],'g-') > but when i draw shorter lines or > pylab.polar([0,0],[0,0],'g-') > i get the whole plot filled with green

[Matplotlib-users] polar plot fills entire plot while drawing line, bug or feature?

2009-08-06 Thread azerith
Hi, I'm new to matplotlib and in need to draw a single impulse on a polar plot, but don't know how to do it, so i just draw a line using pylab.polar([0,0],[0,100],'g-') but when i draw shorter lines or pylab.polar([0,0],[0,0],'g-') i get the whole plot filled with green color, instead of a single

Re: [Matplotlib-users] polar plot: problem with negative angles

2009-05-18 Thread Jae-Joon Lee
The grid line will reappear if you set high enough resolution. plt.subplot(111, polar=True, resolution=100) This should be filed as a bug, though. I guess the current default for resolution is 1. I think this was to enable to draw a straight line in polar projection. However, my guess is that it

Re: [Matplotlib-users] polar plot: problem with negative angles

2009-05-17 Thread Magnus Benjes
> Magnus Benjes wrote: >> Hello, >> in version 0.98.5.2 the polar plot still has a problem with negativ >> angles. >> The polarplot is drawing a circle when the angle changes from negativ to >> positiv (e.g. from -0.01 to +0.01). > > Your example works fine with svn. I don't recall whether the p

Re: [Matplotlib-users] polar plot: problem with negative angles

2009-05-17 Thread Eric Firing
Magnus Benjes wrote: > Hello, > in version 0.98.5.2 the polar plot still has a problem with negativ angles. > The polarplot is drawing a circle when the angle changes from negativ to > positiv (e.g. from -0.01 to +0.01). Your example works fine with svn. I don't recall whether the problem was f

[Matplotlib-users] polar plot: problem with negative angles

2009-05-16 Thread Magnus Benjes
Hello, in version 0.98.5.2 the polar plot still has a problem with negativ angles. The polarplot is drawing a circle when the angle changes from negativ to positiv (e.g. from -0.01 to +0.01). But in "What new in 0.98.4" (http://matplotlib.sourceforge.net/users/whats_new.html) I can read: "Fix p

Re: [Matplotlib-users] Polar Plot: Extraneous Circles

2009-02-23 Thread Eric Firing
mcdevitts wrote: > Hello, > > I've been trying to implement a smith chart like a previous gentlemen on the > list and have run into a similar problem. When my angle value goes from -pi > to pi I get an extraneous circle from the interpolation. From the previous > posts, I am under the impression

[Matplotlib-users] Polar Plot: Extraneous Circles

2009-02-22 Thread mcdevitts
Hello, I've been trying to implement a smith chart like a previous gentlemen on the list and have run into a similar problem. When my angle value goes from -pi to pi I get an extraneous circle from the interpolation. From the previous posts, I am under the impression that this is a known issue

[Matplotlib-users] Polar plot with y-lim set to non-zero

2009-02-02 Thread Ariel Rokem
Hi All - is there any way to make a polar plot with the center of the plot *not* set to 0? I tried resetting ylim, but that just changes the grid laid over the plot, not the location of the markers. Thanks -- Ariel

Re: [Matplotlib-users] Polar plot

2008-09-18 Thread Michael Droettboom
It seems you're getting bitten by the brain-dead interpolation of points (which is meant to draw line segments as curves that follow the radii). I have fixed the polar drawing code in SVN r6106 to normalize theta to (0.0 <= theta <= 2pi) before doing the interpolation, which seems to fix your

Re: [Matplotlib-users] Polar plot

2008-09-17 Thread jan gillis
Hi Tony, Thank you for the reply, the solutions you propose are fine in this case. But I'm trying to use the polar plot as a smith chart for an instrument and there i will receive data that is unknown but can be something like this: r = np.transpose(.1+np.arange ( 0 , 0.7 , 0.001)) theta = -4.5

Re: [Matplotlib-users] Polar plot

2008-09-17 Thread Tony S Yu
On Sep 17, 2008, at 1:59 AM, jan gillis wrote: > Hello, > > I have a problem with polar plot, if i run the following code in > matplotlib 0.98.3, polar plot is drawing a extra circle to go from > angle -3.14159265 to angle 3.03753126. Is there a solution for this > problem? > > **

[Matplotlib-users] Polar plot

2008-09-16 Thread jan gillis
Hello, I have a problem with polar plot, if i run the following code in matplotlib 0.98.3, polar plot is drawing a extra circle to go from angle -3.14159265 to angle 3.03753126. Is there a solution for this problem? import numpy as np from matplotlib.pyplot import figure, sh

[Matplotlib-users] polar plot

2008-09-16 Thread jan gillis
Hello, I have a problem with polar plot, if i run the following code in matplotlib 0.98.3, polar plot is drawing a extra circle to go from angle -3.14159265 to angle 3.03753126. Is there a solution for this problem? import numpy as np from matplotlib.pyplot import figure, sh

Re: [Matplotlib-users] polar plot with glade

2007-04-30 Thread John Hunter
On 4/30/07, Gonzalo A. de la Vega <[EMAIL PROTECTED]> wrote: > Hi all, > I'm trying to embed a polar plot into a glade gui. I modified the > mpl_with_glade.py example script to have something to start with. No > problems with normal plot, but when I try to do polar plot, it fails with > the followi