'_label_angles' attribute missing

Possibly a question for JJ:

pary.axis["right"].get_helper()._label_angles["right"]=270

This lines complain in my script when I try to run it:

Traceback (most recent call last):
File “/usr/local/bin/aerosol_plot.py”, line 276, in
pary.axis[“right”].get_helper()._label_angles[“right”]=270
AttributeError: ‘Fixed’ object has no attribute ‘_label_angles’

Could you tell me how to eliminate this issue?

Thanks.

···


Gökhan

Do you happen to use the svn version?
Regards,

-JJ

···

On Thu, Jan 21, 2010 at 3:06 PM, Gökhan Sever <gokhansever@...287...> wrote:

Possibly a question for JJ:

pary\.axis\[&quot;right&quot;\]\.get\_helper\(\)\.\_label\_angles\[&quot;right&quot;\]=270

This lines complain in my script when I try to run it:

Traceback (most recent call last):
File "/usr/local/bin/aerosol_plot.py", line 276, in <module>
pary.axis["right"].get_helper()._label_angles["right"]=270
AttributeError: 'Fixed' object has no attribute '_label_angles'

Could you tell me how to eliminate this issue?

Thanks.

--
Gökhan

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for
Conference
attendees to learn about information security's most important issues
through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Yes, it is running from the latest trunk check-out.

···

On Thu, Jan 21, 2010 at 3:27 PM, Jae-Joon Lee <lee.j.joon@…287…> wrote:

Do you happen to use the svn version?

Regards,

-JJ

On Thu, Jan 21, 2010 at 3:06 PM, Gökhan Sever <gokhansever@…287…> wrote:

Possibly a question for JJ:

pary.axis["right"].get_helper()._label_angles["right"]=270

This lines complain in my script when I try to run it:

Traceback (most recent call last):

File “/usr/local/bin/aerosol_plot.py”, line 276, in

pary.axis["right"].get_helper()._label_angles["right"]=270

AttributeError: ‘Fixed’ object has no attribute ‘_label_angles’

Could you tell me how to eliminate this issue?

Thanks.

Gökhan


Throughout its 18-year history, RSA Conference consistently attracts the

world’s best and brightest in the field, creating opportunities for

Conference

attendees to learn about information security’s most important issues

through

interactions with peers, luminaries and emerging and established companies.

http://p.sf.net/sfu/rsaconf-dev2dev


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Gökhan

The internals of how ticks, ticklables work in the svn version have
significantly changed, which I hope is an improvement. Unfortunately,
"_label_angles" is deprecated and should not be used. Instead, try,

ax.axis["right"].label.set_axis_direction("left")

The documentation is yet to be written, but there are some examples
you may take a look.

doc/mpl_toolkits/axes_grid/figures/demo_axis_direction.py
doc/mpl_toolkits/axes_grid/figures/demo_ticklabel_alignment.py
doc/mpl_toolkits/axes_grid/figures/demo_ticklabel_alignment.py

Regards,

-JJ

···

On Thu, Jan 21, 2010 at 6:16 PM, Gökhan Sever <gokhansever@...287...> wrote:

Yes, it is running from the latest trunk check-out.

JJ,

One thing is still little mysterious. My top xticks are reversed.

See in the saved image: http://img46.imageshack.us/img46/3849/imagevp.png

The code that produces that script: http://code.google.com/p/ccnworks/source/browse/trunk/dccn_plot.py

Any ideas?

···

On Thu, Jan 21, 2010 at 5:45 PM, Jae-Joon Lee <lee.j.joon@…287…> wrote:

On Thu, Jan 21, 2010 at 6:16 PM, Gökhan Sever <gokhansever@…287…> wrote:

Yes, it is running from the latest trunk check-out.

The internals of how ticks, ticklables work in the svn version have

significantly changed, which I hope is an improvement. Unfortunately,

“_label_angles” is deprecated and should not be used. Instead, try,

ax.axis[“right”].label.set_axis_direction(“left”)

The documentation is yet to be written, but there are some examples

you may take a look.

doc/mpl_toolkits/axes_grid/figures/demo_axis_direction.py

doc/mpl_toolkits/axes_grid/figures/demo_ticklabel_alignment.py

doc/mpl_toolkits/axes_grid/figures/demo_ticklabel_alignment.py

Regards,

-JJ


Gökhan

The rotation of the ticklabels are now measured relative to the
direction of the ticks. While I understand this can be confusing at
first, this is kind of necessary to support axis along an arbitrary
path.

For example, the default rotation for the ticklabels in the top axis
is 180, not 0 (but it looks like 0). So, in your case, the angle
should be 190, instead of 10 (at line 117). Let me know if there is
any other issue.

-JJ

···

On Thu, Jan 21, 2010 at 8:34 PM, Gökhan Sever <gokhansever@...287...> wrote:

JJ,

One thing is still little mysterious. My top xticks are reversed.

See in the saved image: http://img46.imageshack.us/img46/3849/imagevp.png

The code that produces that script:
http://code.google.com/p/ccnworks/source/browse/trunk/dccn_plot.py

Any ideas?

On Thu, Jan 21, 2010 at 5:45 PM, Jae-Joon Lee <lee.j.joon@...287...> wrote:

On Thu, Jan 21, 2010 at 6:16 PM, Gökhan Sever <gokhansever@...1896....> >> wrote:
> Yes, it is running from the latest trunk check-out.

The internals of how ticks, ticklables work in the svn version have
significantly changed, which I hope is an improvement. Unfortunately,
"_label_angles" is deprecated and should not be used. Instead, try,

ax.axis["right"].label.set_axis_direction("left")

The documentation is yet to be written, but there are some examples
you may take a look.

doc/mpl_toolkits/axes_grid/figures/demo_axis_direction.py
doc/mpl_toolkits/axes_grid/figures/demo_ticklabel_alignment.py
doc/mpl_toolkits/axes_grid/figures/demo_ticklabel_alignment.py

Regards,

-JJ

--
Gökhan

This fixes my upside-down looking top x-labels.

I must have missed your updates. Thanks for the quick solution again.

···

On Thu, Jan 21, 2010 at 10:36 PM, Jae-Joon Lee <lee.j.joon@…287…> wrote:

The rotation of the ticklabels are now measured relative to the

direction of the ticks. While I understand this can be confusing at

first, this is kind of necessary to support axis along an arbitrary

path.

For example, the default rotation for the ticklabels in the top axis

is 180, not 0 (but it looks like 0). So, in your case, the angle

should be 190, instead of 10 (at line 117). Let me know if there is

any other issue.

-JJ

On Thu, Jan 21, 2010 at 8:34 PM, Gökhan Sever <gokhansever@…287…> wrote:

JJ,

One thing is still little mysterious. My top xticks are reversed.

See in the saved image: http://img46.imageshack.us/img46/3849/imagevp.png

The code that produces that script:

http://code.google.com/p/ccnworks/source/browse/trunk/dccn_plot.py

Any ideas?

On Thu, Jan 21, 2010 at 5:45 PM, Jae-Joon Lee <lee.j.joon@…287…> wrote:

On Thu, Jan 21, 2010 at 6:16 PM, Gökhan Sever <gokhansever@…287…> > > >> wrote:

Yes, it is running from the latest trunk check-out.

The internals of how ticks, ticklables work in the svn version have

significantly changed, which I hope is an improvement. Unfortunately,

“_label_angles” is deprecated and should not be used. Instead, try,

ax.axis[“right”].label.set_axis_direction(“left”)

The documentation is yet to be written, but there are some examples

you may take a look.

doc/mpl_toolkits/axes_grid/figures/demo_axis_direction.py

doc/mpl_toolkits/axes_grid/figures/demo_ticklabel_alignment.py

doc/mpl_toolkits/axes_grid/figures/demo_ticklabel_alignment.py

Regards,

-JJ

Gökhan


Gökhan