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
0f66b949
Commit
0f66b949
authored
5 years ago
by
Wuttke, Joachim
Committed by
Wuttke, Joachim
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
move initialization into try block (workaround for Windows build server)
parent
aab1340b
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
+2
-3
2 additions, 3 deletions
Wrap/python/plot_utils.py
with
2 additions
and
3 deletions
Wrap/python/plot_utils.py
+
2
−
3
View file @
0f66b949
...
@@ -19,16 +19,15 @@ try: # workaround for build servers
...
@@ -19,16 +19,15 @@ try: # workaround for build servers
import
numpy
as
np
import
numpy
as
np
from
matplotlib
import
pyplot
as
plt
from
matplotlib
import
pyplot
as
plt
from
matplotlib
import
gridspec
,
colors
from
matplotlib
import
gridspec
,
colors
global_cmap
=
plt
.
get_cmap
(
"
gnuplot2
"
)
except
Exception
as
e
:
except
Exception
as
e
:
print
(
"
In plot_utils.py: {:s}
"
.
format
(
str
(
e
)))
print
(
"
In plot_utils.py: {:s}
"
.
format
(
str
(
e
)))
label_fontsize
=
16
label_fontsize
=
16
global_cmap
=
plt
.
get_cmap
(
"
gnuplot2
"
)
def
set_cmap
(
cmap
):
def
set_cmap
(
cmap
):
"""
"""
Sets the default color map
.
Overwrites the color map to be used in 2D plots
.
Argument must be either the name of a matplotlib built-in color map,
Argument must be either the name of a matplotlib built-in color map,
or it must be of type matplotlib.colors.Colormap.
or it must be of type matplotlib.colors.Colormap.
"""
"""
...
...
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