Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
f82071fe
Commit
f82071fe
authored
4 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
plot_utils: postpone_show now as kwargs
parent
a1247751
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Wrap/Python/plot_utils.py
+4
-7
4 additions, 7 deletions
Wrap/Python/plot_utils.py
with
4 additions
and
7 deletions
Wrap/Python/plot_utils.py
+
4
−
7
View file @
f82071fe
...
...
@@ -161,9 +161,7 @@ def plot_colormap(result, units=ba.Axes.DEFAULT, **kwargs):
plot_array
(
result
.
array
(),
axes_limits
=
axes_limits
,
**
kwargs
)
def
plot_specular_simulation_result
(
result
,
units
=
ba
.
Axes
.
DEFAULT
,
**
kwargs
):
def
plot_specular_simulation_result
(
result
,
units
=
ba
.
Axes
.
DEFAULT
,
**
kwargs
):
"""
Plots intensity data for specular simulation result
:param result: SimulationResult from SpecularSimulation
...
...
@@ -195,10 +193,7 @@ def plot_specular_simulation_result(result,
plt
.
title
(
title
)
def
plot_simulation_result
(
result
,
units
=
ba
.
Axes
.
DEFAULT
,
postpone_show
=
False
,
**
kwargs
):
def
plot_simulation_result
(
result
,
units
=
ba
.
Axes
.
DEFAULT
,
**
kwargs
):
"""
Draws simulation result and (optionally) shows the plot.
:param result_: SimulationResult object obtained from GISAS/OffSpec/SpecularSimulation
...
...
@@ -207,6 +202,8 @@ def plot_simulation_result(result,
:param units: units for plot axes
:param postpone_show: postpone showing the plot for later tuning (False by default)
"""
postpone_show
=
kwargs
.
pop
(
'
postpone_show
'
,
False
)
if
len
(
result
.
array
().
shape
)
==
1
:
# 1D data, specular simulation assumed
plot_specular_simulation_result
(
result
,
units
,
**
kwargs
)
else
:
...
...
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