(ax, fontsize=12)
| 9 | |
| 10 | |
| 11 | def example_plot(ax, fontsize=12): |
| 12 | ax.plot([1, 2]) |
| 13 | ax.locator_params(nbins=3) |
| 14 | ax.set_xlabel('x-label', fontsize=fontsize) |
| 15 | ax.set_ylabel('y-label', fontsize=fontsize) |
| 16 | ax.set_title('Title', fontsize=fontsize) |
| 17 | |
| 18 | |
| 19 | @image_comparison(baseline_images=['tight_layout1']) |
no test coverage detected