pyhht icon indicating copy to clipboard operation
pyhht copied to clipboard

y labels rotation

Open ggrrll opened this issue 6 years ago • 6 comments

Hi,

it would be maybe nice to rotate by 90 degrees the y-labels, to avoid overlaps as the ones shown in the attached screenshot

screen shot 2018-08-16 at 17 54 45

Thanks again for the support.

ggrrll avatar Aug 16 '18 16:08 ggrrll

In /pyhht/pyhht/visualization.py I tried ax.set_ylabel(...,rotation=90) and ...rotation='horizontal', but the didn't work for me ... :/

ggrrll avatar Aug 16 '18 16:08 ggrrll

Hi @ggrrll,

From where is this place generated?

jaidevd avatar Aug 16 '18 16:08 jaidevd

place

you mean plot ? it's generated with pyhht.plot_imfs

ggrrll avatar Aug 16 '18 17:08 ggrrll

@ggrrll Would it be preferable if the function does no annotation of the plots at all, and returns the axis object(s) for the user to change as required?

jaidevd avatar Aug 17 '18 03:08 jaidevd

I find very useful to know what's plotted :), so I would definitely leave the y-labels (better if rotated to avoid that) IMO what might be helpful in addition is the passing the figsize arg to matplotlib api.

ggrrll avatar Aug 17 '18 07:08 ggrrll

Currently, the best way to resolve this is to make all plotting functions including plot_imfs return the underlying axis object, which users can modify as required.

jaidevd avatar Jan 11 '21 02:01 jaidevd