()
| 105 | |
| 106 | @image_comparison(['logit_scales.png'], remove_text=True, style='_classic_test') |
| 107 | def test_logit_scales(): |
| 108 | fig, ax = plt.subplots() |
| 109 | |
| 110 | # Typical extinction curve for logit |
| 111 | x = np.array([0.001, 0.003, 0.01, 0.03, 0.1, 0.2, 0.3, 0.4, 0.5, |
| 112 | 0.6, 0.7, 0.8, 0.9, 0.97, 0.99, 0.997, 0.999]) |
| 113 | y = 1.0 / x |
| 114 | |
| 115 | ax.plot(x, y) |
| 116 | ax.set_xscale('logit') |
| 117 | ax.grid(True) |
| 118 | bbox = ax.get_tightbbox(fig.canvas.get_renderer()) |
| 119 | assert np.isfinite(bbox.x0) |
| 120 | assert np.isfinite(bbox.y0) |
| 121 | |
| 122 | |
| 123 | def test_log_scatter(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…