Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fastNLO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
qcd-public
fastNLO
Commits
297c092f
Commit
297c092f
authored
2 years ago
by
Klaus Rabbertz
Browse files
Options
Downloads
Patches
Plain Diff
python3 matplotlib fixes
parent
3ba61a4a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/plotting/fastnnlo_scaledep.py
+4
-3
4 additions, 3 deletions
tools/plotting/fastnnlo_scaledep.py
with
4 additions
and
3 deletions
tools/plotting/fastnnlo_scaledep.py
+
4
−
3
View file @
297c092f
...
...
@@ -91,7 +91,8 @@ from fastnlo import SetGlobalVerbosity
# Redefine ScalarFormatter
class
ScalarFormatterForceFormat
(
ScalarFormatter
):
# Override function that finds format to use.
def
_set_format
(
self
,
vmin
,
vmax
):
# def _set_format(self, vmin, vmax):
def
_set_format
(
self
):
self
.
format
=
"
%1.2f
"
# Give format here
...
...
@@ -142,7 +143,7 @@ def plotting(x_axis, xmin, xmax, iobs, xs_cn, xs_fl, xs_fu, dxsr_cn, xind, title
fig
=
plt
.
figure
(
figsize
=
(
7
,
5
))
ax1
=
plt
.
subplot
(
gs
[:,
:])
ax1
.
set_xlim
([
xmin
,
xmax
])
ax1
.
set_xscale
(
'
log
'
,
nonpos
x
=
'
clip
'
)
ax1
.
set_xscale
(
'
log
'
,
nonpos
itive
=
'
clip
'
)
ax1
.
set_yscale
(
'
linear
'
)
# Texify labels
# tlabels = []
...
...
@@ -252,7 +253,7 @@ def plotting(x_axis, xmin, xmax, iobs, xs_cn, xs_fl, xs_fu, dxsr_cn, xind, title
ax2
=
plt
.
subplot
(
gs
[
2
,
:])
# ax2 = plt.subplot(gs[2, :], sharex=ax1)
ax2
.
set_xlim
([
xmin
,
xmax
])
ax2
.
set_xscale
(
'
log
'
,
nonpos
x
=
'
clip
'
)
ax2
.
set_xscale
(
'
log
'
,
nonpos
itive
=
'
clip
'
)
ax2
.
set_yscale
(
'
linear
'
)
ax2
.
set_xlabel
(
r
'
%s
'
%
xlabel
,
horizontalalignment
=
'
right
'
,
x
=
1.0
,
verticalalignment
=
'
top
'
,
y
=
1.0
)
...
...
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