()
| 9924 | |
| 9925 | |
| 9926 | def test_fill_between_axes_limits(): |
| 9927 | fig, ax = plt.subplots() |
| 9928 | x = np.arange(0, 4 * np.pi, 0.01) |
| 9929 | y = 0.1*np.sin(x) |
| 9930 | threshold = 0.075 |
| 9931 | ax.plot(x, y, color='black') |
| 9932 | |
| 9933 | original_lims = (ax.get_xlim(), ax.get_ylim()) |
| 9934 | |
| 9935 | ax.axhline(threshold, color='green', lw=2, alpha=0.7) |
| 9936 | ax.fill_between(x, 0, 1, where=y > threshold, |
| 9937 | color='green', alpha=0.5, transform=ax.get_xaxis_transform()) |
| 9938 | |
| 9939 | assert (ax.get_xlim(), ax.get_ylim()) == original_lims |
| 9940 | |
| 9941 | |
| 9942 | def test_tick_param_labelfont(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…