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

snapshot...

parent 5e6706b2
No related branches found
No related tags found
No related merge requests found
...@@ -330,7 +330,7 @@ def make_time_domain_hist(values, edges): ...@@ -330,7 +330,7 @@ def make_time_domain_hist(values, edges):
plt.show() 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: 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')
...@@ -345,4 +345,4 @@ def scatter_density(x, y, color=None, fname=None, fig=None, x_rng=None, y_rng=No ...@@ -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: if fname is not None:
fig.savefig(fname) fig.savefig(fname)
return fig return fig, ax
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment