Re: [Matplotlib-users] 2D polar surface plot

2010-06-18 Thread Friedrich Romstedt
2010/6/16 Michael Droettboom : > pcolor runs directly on polar plots just fine.  No need to convert polar to > cartesian outside of matplotlib. It's true, but at the expense of pretty much time, since the arcs must be rendered properly. If your data is dense enough in r and phi, a handmade conver

Re: [Matplotlib-users] 2D polar surface plot

2010-06-16 Thread Michael Droettboom
pcolor runs directly on polar plots just fine. No need to convert polar to cartesian outside of matplotlib. #!/usr/bin/env python from pylab import * import numpy as np # Sampling 60 points in both dimensions T = linspace(0, np.pi * 2, 60) R = linspace(0, 1.0, 60) Z = rand(60,60) # Create a

Re: [Matplotlib-users] 2D polar surface plot

2010-06-15 Thread Benjamin Root
Stephane, First off, you probably do not want to use a surface plot. Rather, pcolor might be more appropriate. In addition, if you can take the azimuth-range coordinates and convert that into x-y coordinates, you can then plot a pcolor using just that. The code would look something like so (ass

[Matplotlib-users] 2D polar surface plot

2010-06-15 Thread Stephane GONAUER
Hi, After reading documentations and the matplotlib example I haven’t found a way to graph the plot I want. I am trying to display a radar video (one turn of the antenna at a time). As such I need to plot a polar surface in 2D with a colormap indicating the video intensity. My data