geomagpy / magpy

MagPy (or GeomagPy) is a Python package for analysing and displaying geomagnetic data.
BSD 3-Clause "New" or "Revised" License
45 stars 27 forks source link

docs: Getting xsticks rotated #131

Open JoseMariaGarciaMarquez opened 8 months ago

JoseMariaGarciaMarquez commented 8 months ago

In the function _plot, within the section where x-axis labels are configured (# SET X-LABELS), the modification ensures that x-axis labels are rotated by 45 degrees and aligned to the right for better readability. This change enhances the appearance of the plots by providing a more visually appealing and informative representation of the x-axis.

ax.set_xticklabels(ax.get_xticklabels(), rotation=45, ha='right')

This modification affects the formatting of x-axis labels in each subplot, making them more readable and improving the overall presentation of the plots.