maximtrp / scikit-posthocs

Multiple Pairwise Comparisons (Post Hoc) Tests in Python
https://scikit-posthocs.rtfd.io
MIT License
346 stars 40 forks source link

Rotation of the vertical ticks in the significance matrix. #48

Closed areyesromero closed 3 years ago

areyesromero commented 3 years ago

Dear Maksim, thank you for creating this useful script. I would like to rotate the ticks on the vertical axis by 90 degrees. I tried to use g.tick_params(labelrotation=45) recalling g=sp.sign_plot() but 'tuple' object has no attribute 'tick_params'. Can you help me better understand how to do this? Thanks in advance. example_matrix

maximtrp commented 3 years ago

You were almost there: just unpack the returned tuple and use its first item:

ax, cbar_ax = sp.sign_plot(data)
ax.tick_params(labelrotation=45)