(fig, pos)
| 10 | |
| 11 | |
| 12 | def setup_axes(fig, pos): |
| 13 | ax = fig.add_subplot(pos, axes_class=axisartist.Axes) |
| 14 | |
| 15 | ax.set_ylim(-0.1, 1.5) |
| 16 | ax.set_yticks([0, 1]) |
| 17 | |
| 18 | ax.axis[:].set_visible(False) |
| 19 | |
| 20 | ax.axis["x"] = ax.new_floating_axis(1, 0.5) |
| 21 | ax.axis["x"].set_axisline_style("->", size=1.5) |
| 22 | |
| 23 | return ax |
| 24 | |
| 25 | |
| 26 | plt.rcParams.update({ |
no test coverage detected
searching dependent graphs…