()
| 75 | |
| 76 | @mpl3d_image_comparison(['aspects.png'], remove_text=False, style='mpl20') |
| 77 | def test_aspects(): |
| 78 | aspects = ('auto', 'equal', 'equalxy', 'equalyz', 'equalxz', 'equal') |
| 79 | _, axs = plt.subplots(2, 3, subplot_kw={'projection': '3d'}) |
| 80 | |
| 81 | for ax in axs.flatten()[0:-1]: |
| 82 | plot_cuboid(ax, scale=[1, 1, 5]) |
| 83 | # plot a cube as well to cover github #25443 |
| 84 | plot_cuboid(axs[1][2], scale=[1, 1, 1]) |
| 85 | |
| 86 | for i, ax in enumerate(axs.flatten()): |
| 87 | ax.set_title(aspects[i]) |
| 88 | ax.set_box_aspect((3, 4, 5)) |
| 89 | ax.set_aspect(aspects[i], adjustable='datalim') |
| 90 | axs[1][2].set_title('equal (cube)') |
| 91 | |
| 92 | |
| 93 | @mpl3d_image_comparison(['aspects_adjust_box.png'], |
nothing calls this directly
no test coverage detected
searching dependent graphs…