Commit dd8e4b5
committed
BUG fixed by @anntzer: correct tick labels with subsampled FixedLocator
When explicitly setting the tick locations and then the corresponding
tick labels, a FixedLocator is used for the locations. It has an nbins
argument that can trigger subsampling. Previously, tick labels were
made by FixedFormatter and based on position, not value, so subsampling
caused a mismatch, yielding incorrect tick labels. This is changed to
use FuncFormatter with a function to look up the label by value,
ignoring the position.1 parent 5455bab commit dd8e4b5
2 files changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1626 | 1626 | | |
1627 | 1627 | | |
1628 | 1628 | | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
1629 | 1636 | | |
1630 | | - | |
| 1637 | + | |
1631 | 1638 | | |
1632 | 1639 | | |
1633 | | - | |
| 1640 | + | |
1634 | 1641 | | |
1635 | 1642 | | |
1636 | 1643 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| 384 | + | |
384 | 385 | | |
385 | 386 | | |
| 387 | + | |
386 | 388 | | |
387 | 389 | | |
388 | 390 | | |
| |||
392 | 394 | | |
393 | 395 | | |
394 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
395 | 403 | | |
396 | 404 | | |
397 | 405 | | |
| |||
0 commit comments