Test the formatted value correspond to the value for ideal ticks in logit space.
(self, x)
| 1359 | |
| 1360 | @pytest.mark.parametrize("x", decade_test) |
| 1361 | def test_basic(self, x): |
| 1362 | """ |
| 1363 | Test the formatted value correspond to the value for ideal ticks in |
| 1364 | logit space. |
| 1365 | """ |
| 1366 | formatter = mticker.LogitFormatter(use_overline=False) |
| 1367 | formatter.set_locs(self.decade_test) |
| 1368 | s = formatter(x) |
| 1369 | x2 = TestLogitFormatter.logit_deformatter(s) |
| 1370 | assert _LogitHelper.isclose(x, x2) |
| 1371 | |
| 1372 | @pytest.mark.parametrize("x", (-1, -0.5, -0.1, 1.1, 1.5, 2)) |
| 1373 | def test_invalid(self, x): |
nothing calls this directly
no test coverage detected