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

AttributeError: 'XTick' object has no attribute 'label' #95

Open
UnsignedByte opened this issue Mar 25, 2024 · 0 comments
Open

AttributeError: 'XTick' object has no attribute 'label' #95

UnsignedByte opened this issue Mar 25, 2024 · 0 comments

Comments

@UnsignedByte
Copy link

UnsignedByte commented Mar 25, 2024

When running plot_pareto.plot, I am getting the following error:

File "/usr/local/lib/python3.9/dist-packages/hypermapper/plot_pareto.py", line 371, in plot
    tick.label.set_fontsize(
AttributeError: 'XTick' object has no attribute 'label'

I believe this is a bug as Tick objects do not have a label property (https://matplotlib.org/stable/api/axis_api.html#matplotlib.axis.Tick). This is an error regardless of whether I run it via hm-plot-pareto or plot_pareto.

Replacing the two lines with tick.label1.set_fontsize(...) fixes this behavior.

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

1 participant