Test that get_tick_position() correctly picks up rcParams tick positions.
()
| 57 | |
| 58 | |
| 59 | def test_get_tick_position_rcParams(): |
| 60 | """Test that get_tick_position() correctly picks up rcParams tick positions.""" |
| 61 | plt.rcParams.update({ |
| 62 | "xtick.top": 1, "xtick.labeltop": 1, "xtick.bottom": 0, "xtick.labelbottom": 0, |
| 63 | "ytick.right": 1, "ytick.labelright": 1, "ytick.left": 0, "ytick.labelleft": 0, |
| 64 | }) |
| 65 | ax = plt.figure().add_subplot() |
| 66 | assert ax.xaxis.get_ticks_position() == "top" |
| 67 | assert ax.yaxis.get_ticks_position() == "right" |
| 68 | |
| 69 | |
| 70 | def test_get_tick_position_tick_top_tick_right(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…