Skip to content
Snippets Groups Projects
Commit b0e42a2e authored by Feliks Kiszkurno's avatar Feliks Kiszkurno
Browse files

Removes not needed keywords

parent b6be9f94
No related branches found
No related tags found
1 merge request!127Small fix to how setting aspect ratio is handled
Pipeline #22273 passed
...@@ -624,7 +624,7 @@ def plot( ...@@ -624,7 +624,7 @@ def plot(
ax.set_aspect(1.0 / aspect) ax.set_aspect(1.0 / aspect)
elif ax is not None and fig is None: elif ax is not None and fig is None:
_draw_plot(meshes, mesh_property, ax=ax) _draw_plot(meshes, mesh_property, ax=ax)
ax.set_aspect(1.0 / ax_aspects[0], share=True) ax.set_aspect(1.0 / ax_aspects[0])
elif ax is None and fig is not None: elif ax is None and fig is not None:
fig = _draw_plot(meshes, mesh_property, fig=fig) fig = _draw_plot(meshes, mesh_property, fig=fig)
for ax, aspect in zip(fig.axes[: n_axs + 1], ax_aspects): for ax, aspect in zip(fig.axes[: n_axs + 1], ax_aspects):
...@@ -632,7 +632,7 @@ def plot( ...@@ -632,7 +632,7 @@ def plot(
elif ax is not None and fig is not None: elif ax is not None and fig is not None:
_draw_plot(meshes, mesh_property, fig=fig, ax=ax) _draw_plot(meshes, mesh_property, fig=fig, ax=ax)
for ax, aspect in zip(fig.axes[: n_axs + 1], ax_aspects): for ax, aspect in zip(fig.axes[: n_axs + 1], ax_aspects):
ax.set_aspect(1.0 / aspect, adjustable="box") ax.set_aspect(1.0 / aspect)
return fig return fig
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment