Commit aac8d6e
committed
TST: hard-code nbins
Do not let the ticks in the inset adjust based on spacing of text which
is not visible.
The issue with the inset locator seems to be that as previously
implemented the axis's estimate of how many ticks it should have was
computed once and then saved.
The way that the inset axes works (if you step through this line at a
time) is that the figure-space size of the axes follows the x/y limits
at a fixed ratio to the screen-space of the same range in the main
axes. Thus, when the inset axes is created it is 'big' in that it has
limits of [0, 1] at 6x zoom -> about half the size of the host axes and
so it concludes that it needs a whole bunch of ticks and remembers that.
One of the changes in this PR makes it so that the number of ticks is
recomputed every time, thus many fewer ticks are used when the axes is
small (even though the text is all turned off).1 parent cefba05 commit aac8d6e
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
0 commit comments