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

Change the axis name #25

Open
danko057 opened this issue Jan 31, 2024 · 1 comment
Open

Change the axis name #25

danko057 opened this issue Jan 31, 2024 · 1 comment

Comments

@danko057
Copy link

This is really great, thank a lot for sharing.
Is there a way that I can change the axis title?

@giacomomarchioro
Copy link
Owner

Hi thanks! Yes, see the example in the main page:

# we adjust some parameters
diagram.ax.set_ylabel('My label')
diagram.fig.set_figwidth(10)
# don't want tikcs on the y label
diagram.ax.set_yticks([])
# I want to show on the x axis instead
diagram.ax.axes.get_xaxis().set_visible(True)
diagram.ax.spines['bottom'].set_visible(True)
diagram.ax.set_xlabel("My x label")

You can just do:
diagram.ax.set_title("My Title")

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

No branches or pull requests

2 participants