On Wed, Sep 14, 2011 at 3:08 PM, Youngung Jeong <youngung.je...@gmail.com>wrote:
> Hi, > > I have x-y grid data with z values and want to have a pixel view and > contour view at the same time on the same position. Both cases should have > polar coordinate system but since contour function does not plot on the > polar coordinate system, it is plotted on a rectilinear projection with > converting the polar grid into x-y grid. Please let me know if this isn't > true. > > For pixel view, pcolormesh was used. The subplot was added with specifying > the projection='polar', as something like below: > > >>> axp=fig.add_subplot(1,1,1,projection='polar') > >>> axr=fig.add_subplot(2,2,1) > > Then, I will have two independent axes shown in the figure canvas. > Since I want to place the two axes on the same position, if allowed, I > would like to do: > > >>> axp=fig.add_subplot(1,1,1,projection='polar') > >>> axr=fig.add_subplot(1,1,1) > > But it only gives one axis added to 'fig.axes'. > Is there any work-around? Or am I missing some other feature of matplotlib? > > Youngung > > There are some ways to do this, but I haven't tried them myself. http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/axislines.html Ben Root
------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users