[Matplotlib-users] polar stereographic projection

2013-09-11 Thread Sourav Chatterjee
I am using 'spstere' for polar stereo graphic projection over Antarctica. The specifications llcrnrlat, llcrnrlon etc are specified in a python module. When I am doing it over north pole it is okay. But in South pole the latitude circles are not appearing. Can anyone tell where is the fault?

Re: [Matplotlib-users] polar stereographic projection

2013-09-11 Thread Jeff Whitaker
Sourav Chatterjee September 11, 2013 3:48 AMI am using 'spstere' for polar stereo graphic projection over Antarctica. The specifications llcrnrlat, llcrnrlon etc are specified in a python module. When I am doing it over north pole it is okay. But in South pole the latitude

Re: [Matplotlib-users] Polar graph radial labels

2012-01-21 Thread Luke Jennings
Hello Paul, Sorry for the late reply I have been away for a couple of days. Thanks for filing the issue, I would very much appreciate it if you manage to track it down. Luke On Tue, Jan 17, 2012 at 1:47 AM, Paul Hobson pmhob...@gmail.com wrote: Luke, I don't have an answer to your question,

[Matplotlib-users] Polar graph radial labels

2012-01-15 Thread Luke Jennings
Hello I sent this email just after Christmas and would appreciate it if anyone has any suggestions. I am unsure if I have missed a parameter or should I file a bug? Thanks Luke -- Forwarded message -- From: Luke Jennings ubuntujenk...@googlemail.com Date: Mon, Dec 26, 2011 at

[Matplotlib-users] Polar graph radial labels

2011-12-26 Thread Luke Jennings
Hello, I am plotting polar graphs for a university project, the data is confidential but I based the work on this example http://matplotlib.sourceforge.net/examples/pylab_examples/polar_demo.html and fortunately the same problem occurs with this. If you take that code and change the last four

[Matplotlib-users] Polar grid below/behind the plot

2011-03-28 Thread Maximus00
Dear Forum, I want to send the polar grid lines (circles and radial lines) behind the plot. How can I do that? I tried other options but unable to do so. Here, I am taking matplotlib example. Please get back to me on this. Thanks!!! Example: polar_demo.py import matplotlib import numpy as np

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

Re: [Matplotlib-users] Polar 3D plot?

2010-03-19 Thread Reinier Heeres
Hi Armin, Thanks, I added it to the mplot3d examples. Cheers, Reinier On Thu, Mar 18, 2010 at 3:46 PM, Armin Moser armin.mo...@student.tugraz.at wrote: Hi, you can create your supporting points on a regular r, phi grid and transform them then to cartesian coordinates: from

Re: [Matplotlib-users] Polar 3D plot?

2010-03-18 Thread Ben Axelrod
at implementing this. You will find the mplot3d code pretty straightforward. (And a lot smaller than you might expect). -Ben -Original Message- From: klukas [mailto:klu...@wisc.edu] Sent: Wednesday, March 17, 2010 4:34 PM To: matplotlib-users@lists.sourceforge.net Subject: [Matplotlib-users

Re: [Matplotlib-users] Polar 3D plot?

2010-03-18 Thread Jeff Klukas
The code below works perfectly. I think this should be included as an mplot3d codex. I'll look into what's required to submit a new example to the documentation. Thanks Armin! || Jeff Klukas, Research Assistant, Physics || University of Wisconsin -- Madison || jeff.klu...@gmail |

Re: [Matplotlib-users] Polar 3D plot?

2010-03-18 Thread Armin Moser
Hi, you can create your supporting points on a regular r, phi grid and transform them then to cartesian coordinates: from mpl_toolkits.mplot3d import Axes3D import matplotlib import numpy as np from matplotlib import cm from matplotlib import pyplot as plt step = 0.04 maxval = 1.0 fig =

[Matplotlib-users] Polar 3D plot?

2010-03-17 Thread klukas
I'm guessing this is currently impossible with the current mplot3d functionality, but I was wondering if there was any way I could generate a 3d graph with r, phi, z coordinates rather than x, y, z? The point is that I want to make a figure that looks like the following:

Re: [Matplotlib-users] Polar Photometry Plots?

2010-03-03 Thread R Fritz
Thank you very much. You have just made me a much happier grad student. I hope this answer gets added to the FAQ! -- Randolph Fritz design machine group, architecture department, university of washington rfr...@u.washington.edu -or- rfritz...@gmail.com On 2010-03-02 18:23:24 -0800, Jae-Joon

Re: [Matplotlib-users] Polar Photometry Plots?

2010-03-03 Thread John Hunter
On Wed, Mar 3, 2010 at 4:09 PM, R Fritz rfr...@u.washington.edu wrote: Thank you very much. You have just made me a much happier grad student. I hope this answer gets added to the FAQ! Make us much happier developers :-)

Re: [Matplotlib-users] Polar Photometry Plots?

2010-03-02 Thread Jae-Joon Lee
Do you have any link to an example plot? I googled it but not much luck. Is it like a polar plot without the bottom half? Regards, -JJ On Tue, Mar 2, 2010 at 1:48 AM, R Fritz rfr...@u.washington.edu wrote: I'd like to be able to generate type C photometry plots with matplotlib. The standard

Re: [Matplotlib-users] Polar Photometry Plots?

2010-03-02 Thread R Fritz
You can see an example on the second page of http://lightolier.com/MKACatpdfs/8011.PDF.  Scroll down.  The plot is next to the table titled, candlepower summary.  It's a quadrant rather than a full circle, and it's clipped to a box, but it's still a polar plot. The only problem I have with

Re: [Matplotlib-users] Polar Photometry Plots?

2010-03-02 Thread Jae-Joon Lee
The current implementation of PolarAxes does not support that. However, you can workaround this easily using a custom axes. In http://matplotlib.sourceforge.net/examples/pylab_examples/polar_demo.html Instead of ax = fig.add_axes([0.1, 0.1, 0.8, 0.8], polar=True, axisbg='#d5de9c') use

[Matplotlib-users] Polar Photometry Plots?

2010-03-01 Thread R Fritz
I'd like to be able to generate type C photometry plots with matplotlib. The standard co-ordinate system for these has 0 degrees at the bottom (nadir) of the plot, with values increasing counterclockwise. Is there anyway I can transform the co-ordinates that matplotlib uses to do this? --

Re: [Matplotlib-users] polar filled plot

2009-10-18 Thread Tony S Yu
Hi Giovanni, Radar plots haven't been added to the core functionality of matplotlib, but there's an example of a custom radar chart class on the mpl website: http://matplotlib.sourceforge.net/examples/api/radar_chart.html Best, -Tony On Oct 17, 2009, at 9:33 AM, Giovanni Bacci wrote:

[Matplotlib-users] polar filled plot

2009-10-17 Thread Giovanni Bacci
Hi all. I'd like to know if it's possible to obtain a radar plot like this: http://code.google.com/intl/en/apis/chart/types.html#radar (the filled one, with cht=rs) with matplotlib. I'm using matplotlib version 0.98.5 Thanks, Giovanni

Re: [Matplotlib-users] Polar plots rendered incorrectly in SVG

2009-09-18 Thread Bartosz Telenczuk
Dear Jae-Joon, Your workaround worked perfectly! Thanks a lot! Cheers, Bartosz -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year.

Re: [Matplotlib-users] Polar plots rendered incorrectly in SVG

2009-09-17 Thread Michael Droettboom
Thanks. I think you're right, Jae-Joon. I've committed a slightly simplified version of your patch on the 0.99 branch and trunk. Mike Jae-Joon Lee wrote: Thanks for reporting the problem. I can reproduce this error in the svn trunk. My diagnosis is that this is because the clip mask is

[Matplotlib-users] Polar plots rendered incorrectly in SVG

2009-09-16 Thread Bartosz Telenczuk
Dear all, I have a problem with exporting polar plots to SVG. When attached to axes which are not centered in the figure, the content (grids, data, etc.) seems not to be shifted correctly with the axes. However, when I plot it directly to the screen or export to PNG everything is fine. Here is

Re: [Matplotlib-users] Polar plots rendered incorrectly in SVG

2009-09-16 Thread Jae-Joon Lee
Thanks for reporting the problem. I can reproduce this error in the svn trunk. My diagnosis is that this is because the clip mask is not correctly set, i.e., the mask path is not properly flipped in the svg backend. I was able to solve this particular problem using the attached patch. But, i'm

[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() is not equal to ax.plot (where ax is a PolarAxes)?

2009-08-03 Thread Michael Droettboom
I'm not able to see a difference between the two methods here: from pylab import * import numpy as np r = np.arange(0, 3.0, 0.01) theta = 2*np.pi*r fig = figure() ax = fig.add_axes([0.1, 0.1, 0.8, 0.8], polar=True) ax.plot(theta, r) show() polar(theta, r) show() Can you provide a standalone

[Matplotlib-users] polar() is not equal to ax.plot (where ax is a PolarAxes)?

2009-08-02 Thread plaf
Hi all, I have been trying both ways of plotting polar and found that they behave differently? Is it just me? I have sets of theta and R to plot, and when I plotted in console using polar() it produces different plot (!) than when I used ax.plot() from my application. I compared this with the

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 plotting clockwise and rotated

2009-05-01 Thread Michael Droettboom
To emulate the current behavior (which doesn't try to interpolate between points) you can pass resolution=1 to the polar command. But I agree with Eric -- it sounds like updating my resolve this issue. Mike Eric Firing wrote: Ng, Enrico wrote: The rotation and resetting of the labels

Re: [Matplotlib-users] Polar plotting clockwise and rotated

2009-05-01 Thread Ng, Enrico
01, 2009 2:14 AM To: Ng, Enrico Subject: Re: [Matplotlib-users] Polar plotting clockwise and rotated With mpl from svn (and using ipython -pylab), the following works: rr = rand(36) r = np.hstack((rr, [rr[0]])) theta = linspace(0, 2*pi, 37) polar(theta, r) Eric

Re: [Matplotlib-users] Polar plotting clockwise and rotated

2009-04-30 Thread Ng, Enrico
The rotation and resetting of the labels isn't a big issue. The issues is when I reverse the direction. Matplotlib seems to only want to plot in an anti-clockwise direction. I can transform the data to be backwards so that it looks ok, however when it tries to connect the start and end points,

Re: [Matplotlib-users] Polar plotting clockwise and rotated

2009-04-30 Thread Eric Firing
Ng, Enrico wrote: The rotation and resetting of the labels isn't a big issue. The issues is when I reverse the direction. Matplotlib seems to only want to plot in an anti-clockwise direction. I can transform the data to be backwards so that it looks ok, however when it tries to connect the

Re: [Matplotlib-users] Polar plotting clockwise and rotated

2009-04-21 Thread Matthias Michler
Hi Enrico, I'm afraid that this functionality is missing in matplotlib, but I'm not an expert so there is still hope that this can be easily achieved. A work around, that comes to my mind is resetting the label values using an idea from another mail on this list ( thetagrids( range(0,360,45),

[Matplotlib-users] Polar plotting clockwise and rotated

2009-04-16 Thread Ng, Enrico
I've been trying to figure out how to do this for a while. I need to make polar plots which go around clockwise and have 0deg on top (north) instead of on the side (east). How can this be done? -- Stay on top of

Re: [Matplotlib-users] polar graph

2009-02-27 Thread Jae-Joon Lee
I recommend you to use the Wedge class in matplotlib.patches. from matplotlib.patches import Wedge # draw a wedge in the axes coordinate. (0.5, 0.5) in axes coordinate corresponds to (0,0) in polar coordinate. trans = ax.transAxes center, R = (0.5, 0.5), 0.5 twopi=360. pie1 = Wedge(center, R, 0,

[Matplotlib-users] polar graph

2009-02-26 Thread bubye
Hi, i'm wondering if there is an easy way to fill the background in a polar graph with a specific color. If I were making a pie graph, it'd be something like: pie([70,20,10]), where the first 70% is green, the next 20, yellow, and the last 10, red. I've been experimenting with polar graphs

Re: [Matplotlib-users] polar graph

2009-02-26 Thread bubye
I made a little more progress, but i'm not sure i'm doing this the right way. Suggestions? from pylab import * import numpy as np #generate random temperature data snp=[] for i in range(0,65): snp.append(np.random.randint(35,122)) #hide the labels. I don't want them. rc('xtick',

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

Re: [Matplotlib-users] Polar bars and matplotlib 0.98.5

2009-02-23 Thread Eric Firing
Laurent Mychkine wrote: hi, I'm using polar bars to plot windroses. Since the 0.98.5 version i have some issues with the plots. The 0° bar is not displayed in the good way. This bar is located between -0.26 radian and 0.26 radian but it is printed counterclockwise. It was working perfectly with

[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 bars and matplotlib 0.98.5

2009-02-19 Thread Laurent Mychkine
hi, I'm using polar bars to plot windroses. Since the 0.98.5 version i have some issues with the plots. The 0° bar is not displayed in the good way. This bar is located between -0.26 radian and 0.26 radian but it is printed counterclockwise. It was working perfectly with matplotlib version

[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

[Matplotlib-users] polar clockface

2009-01-03 Thread Gaius Hammond
Hi all, Does anyone know if it's possible to make the polar plot look like a 12- or 24-hr clockface? I.e. 0 (or 12) at the top rather than the right, and labelled in 12ths (or 24ths) instead of degrees? Thanks, G

[Matplotlib-users] polar in a subplot

2008-12-02 Thread Nils Wagner
Hi all, If I run the attached example I obtain no polar plots, but a view like plot(t,r_1) - for what reason ? Nils python -i test_subplot_polar.py --verbose-helpful $HOME=/home/nwagner CONFIGDIR=/home/nwagner/.matplotlib /usr/lib/python2.4/site-packages/matplotlib/__init__.py:662:

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Ryan May
On Tue, Dec 2, 2008 at 11:07 AM, Nils Wagner [EMAIL PROTECTED]wrote: Hi all, If I run the attached example I obtain no polar plots, but a view like plot(t,r_1) - for what reason ? You need to specify polar=True to the subplot commands. Try this: from pylab import subplot, polar, linspace,

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Nils Wagner
On Tue, 2 Dec 2008 11:14:48 -0600 Ryan May [EMAIL PROTECTED] wrote: On Tue, Dec 2, 2008 at 11:07 AM, Nils Wagner [EMAIL PROTECTED]wrote: Hi all, If I run the attached example I obtain no polar plots, but a view like plot(t,r_1) - for what reason ? You need to specify polar=True to the

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Ryan May
On Tue, Dec 2, 2008 at 11:27 AM, Nils Wagner [EMAIL PROTECTED]wrote: Thank you very much ! It would be nice to have that information in the docstring Done. The next inquiry is related to xticks. I have added xticks(linspace(0,2*pi,24,endpoint=False)) The difference between consecutive

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Ryan May
The next inquiry is related to xticks. I have added xticks(linspace(0,2*pi,24,endpoint=False)) The difference between consecutive xticks is varying between 14 and 16 degrees. The following works around the roundoff for me: xticks(linspace(0, 360, 24, endpoint=False) * pi/180.) Ryan --

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Michael Droettboom
Ryan May wrote: On Tue, Dec 2, 2008 at 11:27 AM, Nils Wagner [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thank you very much ! It would be nice to have that information in the docstring Done. Thanks for updating the docstring. I actually saw this as a usability bug and

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Ryan May
Michael Droettboom wrote: Thanks for updating the docstring. I actually saw this as a usability bug and have come up with a patch such that polar() (et al) will *replace* the current axes with a polar plot if it isn't already polar. This is (from the user's perspective) similar to how,

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Michael Droettboom
I've committed both of these things. The subplot()/polar() change seems tricky, so it may produce some breakage even though the regression tests are passing. Please let me know if you see anything strange after this change. Mike Ryan May wrote: Michael Droettboom wrote: Thanks for

[Matplotlib-users] polar

2008-11-25 Thread Nils Wagner
Hi all, If I run the attached example I get python -i test_polar.py --verbose-helpful $HOME=/home/nwagner matplotlib data path /usr/lib/python2.4/site-packages/matplotlib/mpl-data loaded rc file /home/nwagner/matplotlibrc matplotlib version 0.98.3 verbose.level helpful interactive is False

Re: [Matplotlib-users] polar

2008-11-25 Thread Michael Droettboom
It says: You are using unicode and latex, but have not enabled the matplotlib 'text.latex.unicode' rcParam. Does setting text.latex.unicode to True resolve the issue? Maybe that message should be made more prominent -- it currently is only displayed when verbose is turned on, but it really is

Re: [Matplotlib-users] polar

2008-11-25 Thread Drain, Theodore R
and makes doing any kind of processing of axis labels more difficult). Ted -Original Message- From: Michael Droettboom [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008 12:25 PM To: Nils Wagner Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] polar

Re: [Matplotlib-users] polar

2008-11-25 Thread Michael Droettboom
use get_majorticklocs() and get an array of floats. Cheers, Mike Ted -Original Message- From: Michael Droettboom [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008 12:25 PM To: Nils Wagner Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] polar

Re: [Matplotlib-users] polar

2008-11-25 Thread John Hunter
On Tue, Nov 25, 2008 at 2:40 PM, Drain, Theodore R [EMAIL PROTECTED] wrote: Michael, I think the issue is that there is no Unicode in the script that was attached - it's just a simple polar call so the user isn't really Unicode. I think Unicode is starting to creep into the source in various

Re: [Matplotlib-users] polar

2008-11-25 Thread Drain, Theodore R
Subject: Re: [Matplotlib-users] polar Drain, Theodore R wrote: Michael, I think the issue is that there is no Unicode in the script that was attached - it's just a simple polar call so the user isn't really Unicode. Polar plots always use Unicode by default for the degree sign

Re: [Matplotlib-users] polar

2008-11-25 Thread Michael Droettboom
John Hunter wrote: The problem here appears to be in matplotlib.projects.polar.ThetaFormatter.__call__, which uses the degree symbol. I think all we need to do is return the proper tex string in this case. Michael, does this look right to you: def __call__(self, x, pos=None):

Re: [Matplotlib-users] polar

2008-11-25 Thread Michael Droettboom
] Sent: Tuesday, November 25, 2008 1:06 PM To: Drain, Theodore R Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] polar Drain, Theodore R wrote: Michael, I think the issue is that there is no Unicode in the script that was attached - it's just

Re: [Matplotlib-users] polar

2008-11-25 Thread John Hunter
On Tue, Nov 25, 2008 at 3:16 PM, John Hunter [EMAIL PROTECTED] wrote: If the unicode minus is sufficiently problematic for you, I can add an rc param. Something like axis.unicode_minus : True Added as rc param 'axes.unicode_minus' in svn r6453 with example examples/api/unicode_minus.py

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?

[Matplotlib-users] polar interpolation

2008-09-09 Thread Lionel Roubeyrie
Hi all, the new polar projection gives me a strange behavour by interpolating each simple line between two consecutives points. Where I just want points at specified coordinates and lines connecting them, between each pairs appears a interpolated line in polar projection with multiple points.

[Matplotlib-users] Polar charts question

2008-05-07 Thread Matias Surdi
Is it possible to make a chart like this: http://www.advsofteng.com/images/multiradar_g.png with matplotlib? Where can I find some examples? Thanks a lot. - This SF.net email is sponsored by the 2008 JavaOne(SM)

[Matplotlib-users] Polar Half-space plot

2007-07-23 Thread Chad Kidder
I've been using matplotlib on OSX a bit and was wondering if anyone had code out there for a polar half-space plot? I created one for matlab a while back and if there is not one for matplotlib, I would be happy to offer up my code as a good beginning. It has a good bit of logic in it to

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:

Re: [Matplotlib-users] polar axes control

2006-12-24 Thread Eric Firing
Miles Lubin wrote: Hi, I would like to be able to remove the dotted straight lines on the polar axes, but keep the dotted circular lines (not sure of the technical names, sorry). I also want to remove the degree measurement labels since they are not meaningful for the data that I am

Re: [Matplotlib-users] polar axes control

2006-12-24 Thread Miles Lubin
Solved the problems, thanks. Another issue has come up. After looking through http://matplotlib.sourceforge.net/matplotlib.axes.html#PolarAxes, I see a get_rmax() function, but there is no corresponding set_rmax(). Using set_ylim() causes hanging when it attempts to graph, and set_xlim is

Re: [Matplotlib-users] polar axes control

2006-12-24 Thread Eric Firing
Miles Lubin wrote: Solved the problems, thanks. Another issue has come up. After looking through http://matplotlib.sourceforge.net/matplotlib.axes.html#PolarAxes, I see a get_rmax() function, but there is no corresponding set_rmax(). Using set_ylim() causes hanging when it attempts to

Re: [Matplotlib-users] polar axes control

2006-12-24 Thread Pierre GM
On Monday 25 December 2006 01:30, Eric Firing wrote: I don't think so--at least, I have not figured it out after a few minutes of looking around and trying to understand how things work. I think polar plotting needs quite a bit of work. Sorry for hijacking the thread, but a few months ago I

[Matplotlib-users] Polar axis and fill() function?

2006-06-30 Thread marek
I am a new user of matplotlib and am trying to create a radar or star plot. I didn't see a convenience function in matplotlib so I am trying to create it using polar plots. It would seem straight forward if the fill() function could be used with polar axes, but my attempts thus far have not