Polar Photometry Plots?

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@...1342... -or- rfritz333@...287...

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 <rfritz@...1342...> wrote:
> You can see an example on the second page of
> <Lightolier | Signify. �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 <rfritz@...1342...> 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@...1342... -or- rfritz333@...287...

Make us much happier developers :slight_smile:

http://matplotlib.sourceforge.net/faq/howto_faq.html#contribute-to-matplotlib-documentation

JDH

···

On Wed, Mar 3, 2010 at 4:09 PM, R Fritz <rfritz@...1342...> wrote:

Thank you very much. You have just made me a much happier grad student.

I hope this answer gets added to the FAQ!