luinardi / hypermapper

Black-box Optimizer based on Bayesian Optimization
MIT License
152 stars 26 forks source link

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

Open UnsignedByte opened 5 months ago

UnsignedByte commented 5 months ago

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.