[Matplotlib-users] Setting xticks rotation in matplotlibrc
Eric Firing
efiring at hawaii.edu
Thu Oct 14 17:38:56 EDT 2021
Eric,
Yes, it is expected: matplotlibrc does not include a key for this
because it is not common that one would want to change the default
orientation.
I suggest using plt.tick_params() or the equivalent Axes method for
modifying your tick and tick label properties.
Eric
On 2021/10/14 4:01 AM, Éric Depagne wrote:
> Hi all,
>
> I'm trying to set the rotation angle of the xticks in my matplotlibrc file
> using the following:
> xtick.rotation: 45
> But it has no effect.
> When I start ipython, it loads my matplotlibrc file and I get the following
> message:
> Bad key xtick.rotation in file /home/eric/.config/matplotlib/matplotlibrc, line
> 472 ('xtick.rotation: 45')
>
> I wonder if that's the expected behaviour, and that one can only set the
> rotation using
> plt.xticks(rotation=45)
>
> Thanks.
> Éric.
>
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
>
More information about the Matplotlib-users
mailing list