Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fast-plotter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
fast-hep
public
fast-plotter
Commits
632bcbba
Commit
632bcbba
authored
6 years ago
by
Ben Krikler
Browse files
Options
Downloads
Patches
Plain Diff
Fix lint
parent
995c5e25
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fast_plotter/plotting.py
+5
-5
5 additions, 5 deletions
fast_plotter/plotting.py
with
5 additions
and
5 deletions
fast_plotter/plotting.py
+
5
−
5
View file @
632bcbba
...
...
@@ -49,7 +49,7 @@ def plot_all(df, project_1d=True, project_2d=True, data="data", signal=None, dat
return
figures
,
ran_ok
class
f
ill
_c
oll
(
object
):
class
F
ill
C
oll
(
object
):
def
__init__
(
self
,
n_colors
=
10
,
ax
=
None
,
fill
=
True
,
line
=
True
):
self
.
calls
=
0
colormap
=
plt
.
cm
.
nipy_spectral
...
...
@@ -88,7 +88,7 @@ class fill_coll(object):
self
.
calls
+=
1
class
b
ar
_c
oll
(
f
ill
_c
oll
):
class
B
ar
C
oll
(
F
ill
C
oll
):
def
__call__
(
self
,
col
,
**
kwargs
):
ax
,
x
,
y
,
color
=
self
.
pre_call
(
col
)
align
=
"
center
"
...
...
@@ -107,14 +107,14 @@ def actually_plot(df, x_axis, y, yerr, kind, label, ax, dataset_col="dataset"):
return
n_datasets
=
len
(
df
.
index
.
unique
(
dataset_col
))
if
kind
==
"
line
"
:
filler
=
f
ill
_c
oll
(
n_datasets
,
ax
=
ax
,
fill
=
False
)
filler
=
F
ill
C
oll
(
n_datasets
,
ax
=
ax
,
fill
=
False
)
df
[
y
].
unstack
(
dataset_col
).
iloc
[:,
::
-
1
].
apply
(
filler
,
axis
=
0
,
step
=
"
mid
"
)
return
elif
kind
==
"
bar
"
:
filler
=
b
ar
_c
oll
(
n_datasets
,
ax
=
ax
)
filler
=
B
ar
C
oll
(
n_datasets
,
ax
=
ax
)
df
[
y
].
unstack
(
dataset_col
).
iloc
[:,
::
-
1
].
apply
(
filler
,
axis
=
0
,
step
=
"
mid
"
)
elif
kind
==
"
fill
"
:
filler
=
f
ill
_c
oll
(
n_datasets
,
ax
=
ax
)
filler
=
F
ill
C
oll
(
n_datasets
,
ax
=
ax
)
df
[
y
].
unstack
(
dataset_col
).
iloc
[:,
::
-
1
].
apply
(
filler
,
axis
=
0
,
step
=
"
mid
"
)
elif
kind
==
"
fill-error-last
"
:
actually_plot
(
df
,
x_axis
,
y
,
yerr
,
"
fill
"
,
...
...
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