Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OGSTools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ogs
OpenGeoSys Tools
OGSTools
Commits
b0e42a2e
Commit
b0e42a2e
authored
1 year ago
by
Feliks Kiszkurno
Browse files
Options
Downloads
Patches
Plain Diff
Removes not needed keywords
parent
b6be9f94
No related branches found
No related tags found
1 merge request
!127
Small fix to how setting aspect ratio is handled
Pipeline
#22273
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ogstools/meshplotlib/core.py
+2
-2
2 additions, 2 deletions
ogstools/meshplotlib/core.py
with
2 additions
and
2 deletions
ogstools/meshplotlib/core.py
+
2
−
2
View file @
b0e42a2e
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment