Open JoseMariaGarciaMarquez opened 10 months ago
Dear Jose, sorry for not answering that long. I have seen your pull request and checked it. Hard coding that part will break up plot designs for some groups using horizontal labels. It is certainly possible to include that as an option however. As pumping up the rather old and pieced together MagPy code with such options gets more and more complicated I decided to give it a complete refurbishment. Thus I will not include that in MagPy1.x but will make it available in the next generation of MagPy.
I am currently working on MagPy 2.0.0 which is actually already on the way and which will include rotated labels within its plotting method. You can checkout the current progress in branch magpy2. All packages of MagPy will be cleaned and updated (some of them are already) and combined with runtime and unittest features for continuous integration. My main focus currently lays on all backend methods, testing/verification and speed issues. The graphical interface XMagPy is last on the list. I am also updating the README frequently in that branch so that you can follow changes easily. I try to incorporate all suggestions into this new version. It will need a while however until that part reaches a publication stage.
Best wishes, Roman
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.