Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Getting xsticks rotated #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JoseMariaGarciaMarquez
Copy link

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.

@leonro
Copy link
Collaborator

leonro commented Sep 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants