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.

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

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

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 zw...@web.de 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

[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

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 zw...@web.de 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

Re: [Matplotlib-users] polar plot

2010-08-23 Thread Friedrich Romstedt
2010/8/20 Michael Droettboom md...@stsci.edu: 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

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 Droettboommd...@stsci.edu: 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

Re: [Matplotlib-users] polar plot

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

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 Droettboommd...@stsci.edu: 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

Re: [Matplotlib-users] polar plot

2010-08-19 Thread Friedrich Romstedt
2010/8/19 Michael Droettboom md...@stsci.edu: 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,

[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

2010-08-18 Thread Benjamin Root
On Wed, Aug 18, 2010 at 8:03 AM, Nils Wagner nwag...@iam.uni-stuttgart.dewrote: 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

Re: [Matplotlib-users] polar plot

2010-08-18 Thread Nils Wagner
On Wed, 18 Aug 2010 08:51:31 -0500 Benjamin Root ben.r...@ou.edu wrote: On Wed, Aug 18, 2010 at 8:03 AM, Nils Wagner nwag...@iam.uni-stuttgart.dewrote: 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

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 nwag...@iam.uni-stuttgart.de 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

Re: [Matplotlib-users] polar plot

2010-08-18 Thread Friedrich Romstedt
2010/8/18 Michael Droettboom md...@stsci.edu: 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

Re: [Matplotlib-users] polar plot

2010-08-18 Thread Jae-Joon Lee
On Wed, Aug 18, 2010 at 10:03 PM, Nils Wagner nwag...@iam.uni-stuttgart.de 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

[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

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

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

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

2009-05-17 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

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 that

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

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?

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 following: