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 (assuming  some function polar2xy exists):

# azimuth, r, vals, x, and y are all the same shape
x, y = polar2xy(azimuth, r)
plt.pcolor(x, y, vals)
plt.show()

Once that is working sufficiently, then you will have to modify the code a
bit to specify the colormap.

I hope that gets you started.

Ben Root


On Tue, Jun 15, 2010 at 10:17 AM, Stephane GONAUER <
stephane.gona...@sofrelog.com> wrote:

>  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 input is simply a file where intensity are logged along rho and
> theta
>
>
>
> The nearest example I found in the documentation is the 3d-surface plot but
> I need to have it in 2D
>
> Can you provide me with some idea/pointers ?
>
>
>
> Has it been already tried ?
>
>
>
>
>
>
>
> Best Regards,
>
> Stéphane
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to