8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cb5f537 + c2a3a07 commit dc6f462Copy full SHA for dc6f462
lib/matplotlib/axis.py
@@ -2002,8 +2002,7 @@ def get_tick_space(self):
2002
# There is a heuristic here that the aspect ratio of tick text
2003
# is no more than 3:1
2004
size = tick.label1.get_size() * 3
2005
- size *= np.cos(np.deg2rad(tick.label1.get_rotation()))
2006
- return np.floor(length / size)
+ return int(np.floor(length / size))
2007
2008
2009
class YAxis(Axis):
@@ -2342,5 +2341,4 @@ def get_tick_space(self):
2342
2341
tick = self._get_tick(True)
2343
# Having a spacing of at least 2 just looks good.
2344
size = tick.label1.get_size() * 2.0
2345
2346
0 commit comments