Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

## Re: [Matplotlib-users] Polar Photometry Plots?

 Re: [Matplotlib-users] Polar Photometry Plots? From: R Fritz - 2010-03-03 22:09:59 ```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 rfritz@... -or- rfritz333@... On 2010-03-02 18:23:24 -0800, Jae-Joon Lee said: > 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 following code > > from matplotlib.projections.polar import PolarAxes > from matplotlib.transforms import Affine2D > > class PolarAxes2(PolarAxes): > def PolarTransform(self): > return Affine2D().translate(-.5*np.pi,0) + PolarAxes.PolarTransform() > > ax = PolarAxes2(fig, [0.1, 0.1, 0.8, 0.8], axisbg='#d5de9c') > ax = fig.add_axes(ax) > > Regards, > > -JJ > > > On Tue, Mar 2, 2010 at 8:44 PM, R Fritz wrote: > > You can see an example on the second page of > > ;.  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 what matplotlib does is that it seems > > determined to put zero at the right, rather than at the bottom.  I want > > to turn the axis 90 degrees. > > > > Randolph > > > > On 2010-03-02 14:50:51 -0800, Jae-Joon Lee said: > > > >> 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 wrote: > >> > 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? > >> > -- > >>> Randolph Fritz > >>> >  design machine group, architecture department, university of washington > >>> > rfritz@... -or- rfritz333@... ```

 [Matplotlib-users] Polar Photometry Plots? From: R Fritz - 2010-03-02 06:55:16 ```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? -- Randolph Fritz design machine group, architecture department, university of washington rfritz@... -or- rfritz333@... ```
 Re: [Matplotlib-users] Polar Photometry Plots? From: Jae-Joon Lee - 2010-03-02 22:51:12 ```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 wrote: > 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? > -- > Randolph Fritz >  design machine group, architecture department, university of washington > rfritz@... -or- rfritz333@... > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ```
 Re: [Matplotlib-users] Polar Photometry Plots? From: R Fritz - 2010-03-03 01:44:35 ```You can see an example on the second page of ;.  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 what matplotlib does is that it seems determined to put zero at the right, rather than at the bottom.  I want to turn the axis 90 degrees. Randolph On 2010-03-02 14:50:51 -0800, Jae-Joon Lee said: > 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 wrote: > > 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? > > -- >> Randolph Fritz >> >  design machine group, architecture department, university of washington >> > rfritz@... -or- rfritz333@... ```
 Re: [Matplotlib-users] Polar Photometry Plots? From: Jae-Joon Lee - 2010-03-03 02:23:45 ```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 following code from matplotlib.projections.polar import PolarAxes from matplotlib.transforms import Affine2D class PolarAxes2(PolarAxes): def PolarTransform(self): return Affine2D().translate(-.5*np.pi,0) + PolarAxes.PolarTransform() ax = PolarAxes2(fig, [0.1, 0.1, 0.8, 0.8], axisbg='#d5de9c') ax = fig.add_axes(ax) Regards, -JJ On Tue, Mar 2, 2010 at 8:44 PM, R Fritz wrote: > You can see an example on the second page of > ;.  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 what matplotlib does is that it seems > determined to put zero at the right, rather than at the bottom.  I want > to turn the axis 90 degrees. > > Randolph > > On 2010-03-02 14:50:51 -0800, Jae-Joon Lee said: > >> 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 wrote: >> > 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? >> > -- >>> Randolph Fritz >>> >  design machine group, architecture department, university of washington >>> > rfritz@... -or- rfritz333@... > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ```
 Re: [Matplotlib-users] Polar Photometry Plots? From: R Fritz - 2010-03-03 22:09:59 ```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 rfritz@... -or- rfritz333@... On 2010-03-02 18:23:24 -0800, Jae-Joon Lee said: > 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 following code > > from matplotlib.projections.polar import PolarAxes > from matplotlib.transforms import Affine2D > > class PolarAxes2(PolarAxes): > def PolarTransform(self): > return Affine2D().translate(-.5*np.pi,0) + PolarAxes.PolarTransform() > > ax = PolarAxes2(fig, [0.1, 0.1, 0.8, 0.8], axisbg='#d5de9c') > ax = fig.add_axes(ax) > > Regards, > > -JJ > > > On Tue, Mar 2, 2010 at 8:44 PM, R Fritz wrote: > > You can see an example on the second page of > > ;.  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 what matplotlib does is that it seems > > determined to put zero at the right, rather than at the bottom.  I want > > to turn the axis 90 degrees. > > > > Randolph > > > > On 2010-03-02 14:50:51 -0800, Jae-Joon Lee said: > > > >> 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 wrote: > >> > 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? > >> > -- > >>> Randolph Fritz > >>> >  design machine group, architecture department, university of washington > >>> > rfritz@... -or- rfritz333@... ```
 Re: [Matplotlib-users] Polar Photometry Plots? From: John Hunter - 2010-03-03 22:37:32 ```On Wed, Mar 3, 2010 at 4:09 PM, R Fritz 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 :-) http://matplotlib.sourceforge.net/faq/howto_faq.html#contribute-to-matplotlib-documentation JDH ```