(ax, fontsize=12, nodec=False)
| 8 | |
| 9 | |
| 10 | def example_plot(ax, fontsize=12, nodec=False): |
| 11 | ax.plot([1, 2]) |
| 12 | ax.locator_params(nbins=3) |
| 13 | if not nodec: |
| 14 | ax.set_xlabel('x-label', fontsize=fontsize) |
| 15 | ax.set_ylabel('y-label', fontsize=fontsize) |
| 16 | ax.set_title('Title', fontsize=fontsize) |
| 17 | else: |
| 18 | ax.set_xticklabels('') |
| 19 | ax.set_yticklabels('') |
| 20 | |
| 21 | |
| 22 | def example_pcolor(ax, fontsize=12): |
no test coverage detected