python 2.6 - Changing labels in matplotlib polar plot -


i using matplotlib create polar plots represent rose diagrams. right plot getting created perfectly. want replace angles being displayed on axis direction names: n 0 degrees, w 90 degrees, s 180 degrees , e 270 degrees.

the current rose diagram looks following: enter image description here

note: have tried windrose output more appropriate purpose. hence way of assigning custom labels axes helpful.

the python version using 2.6 matplotlib version 1.2.0

assuming have axes object ax can this

ax.set_xticklabels(['n', '', 'w', '', 's', '', 'e', '']) 

or inspiration this old example


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -