From a0184bf6bfb0f6fccfcc1944778e341a2c912596 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Fri, 12 Jan 2024 10:47:14 -0600 Subject: [PATCH] snapshot... --- modules/util/plot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/util/plot.py b/modules/util/plot.py index b027d29e..f2163ccb 100644 --- a/modules/util/plot.py +++ b/modules/util/plot.py @@ -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 -- GitLab