Skip to content
Snippets Groups Projects
Commit 208d4967 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 9bfed733
Branches
No related tags found
No related merge requests found
...@@ -292,11 +292,12 @@ def make_time_domain_hist(values, edges): ...@@ -292,11 +292,12 @@ def make_time_domain_hist(values, edges):
plt.show() plt.show()
def scatter_density(x, y, color, fname=None, fig=None): def scatter_density(x, y, color=None, fname=None, fig=None):
if fig is None: if fig is None:
fig = plt.figure() fig = plt.figure()
ax = fig.add_subplot(1, 1, 1, projection='scatter_density') ax = fig.add_subplot(1, 1, 1, projection='scatter_density')
ax.scatter_density(x, y, color=color) if color is not None:
ax.scatter_density(x, y, color=color)
if fname is not None: if fname is not None:
fig.savefig(fname) fig.savefig(fname)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment