()
| 114 | |
| 115 | |
| 116 | def test_set_ticks_emits_lim_changed(): |
| 117 | fig, ax1 = plt.subplots() |
| 118 | ax1.set_xlim(0.5, 1) |
| 119 | called_cartesian = [] |
| 120 | ax1.callbacks.connect("xlim_changed", called_cartesian.append) |
| 121 | ax1.set_xticks([0, 100]) |
| 122 | assert called_cartesian |
| 123 | |
| 124 | fig = plt.figure() |
| 125 | ax2 = fig.add_subplot(projection="polar") |
| 126 | ax2.set_ylim(0.5, 1) |
| 127 | called_polar = [] |
| 128 | ax2.callbacks.connect("ylim_changed", called_polar.append) |
| 129 | ax2.set_rticks([1, 2, 3]) |
| 130 | assert called_polar |
nothing calls this directly
no test coverage detected
searching dependent graphs…