Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tom Rink
python
Commits
a0184bf6
Commit
a0184bf6
authored
1 year ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
5e6706b2
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
modules/util/plot.py
+3
-3
3 additions, 3 deletions
modules/util/plot.py
with
3 additions
and
3 deletions
modules/util/plot.py
+
3
−
3
View file @
a0184bf6
...
...
@@ -330,10 +330,10 @@ def make_time_domain_hist(values, edges):
plt
.
show
()
def
scatter_density
(
x
,
y
,
color
=
None
,
fname
=
None
,
fig
=
None
,
x_rng
=
None
,
y_rng
=
None
,
dpi
=
72
):
def
scatter_density
(
x
,
y
,
color
=
None
,
fname
=
None
,
fig
=
None
,
ax
=
None
,
x_rng
=
None
,
y_rng
=
None
,
dpi
=
72
):
if
fig
is
None
:
fig
=
plt
.
figure
()
ax
=
fig
.
add_subplot
(
1
,
1
,
1
,
projection
=
'
scatter_density
'
)
ax
=
fig
.
add_subplot
(
1
,
1
,
1
,
projection
=
'
scatter_density
'
)
if
color
is
not
None
:
ax
.
scatter_density
(
x
,
y
,
color
=
color
,
dpi
=
dpi
)
else
:
...
...
@@ -345,4 +345,4 @@ def scatter_density(x, y, color=None, fname=None, fig=None, x_rng=None, y_rng=No
if
fname
is
not
None
:
fig
.
savefig
(
fname
)
return
fig
\ No newline at end of file
return
fig
,
ax
\ No newline at end of file
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