You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting the tick length on the top spine only, it is also applied to the bottom spine, creating space between the bottom of the chart and the axis labels.
I don't think the tick parameters are customizable between the top and bottom spines; note that ax.spines['top'].axis is the same object as ax.spines['bottom'].axis.
If you want a different spine in the middle of your figure with no labels, you could try using ax.secondary_xaxis (https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.secondary_xaxis.html). It should be completely configurable independent of the main x-axis. The only issue is that I don't know that you can pin secondary_xaxis to a data value (eg. 0). versus a location on the axes (eg. 0.5)
Bug summary
When setting the tick length on the top spine only, it is also applied to the bottom spine, creating space between the bottom of the chart and the axis labels.
Code for reproduction
Actual outcome
Expected outcome
Additional information
No response
Operating system
Windows
Matplotlib Version
3.3.4
Matplotlib Backend
TkAgg
Python version
3.6.13
Jupyter version
No response
Installation
pip
The text was updated successfully, but these errors were encountered: