diff --git a/modules/util/plot.py b/modules/util/plot.py index 2f0bab9b2ecee5ba292a2d59edd7af4202fb55df..081964c99b29b7360e78ad33155c4a118e8210d5 100644 --- a/modules/util/plot.py +++ b/modules/util/plot.py @@ -292,14 +292,14 @@ 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): +def scatter_density(x, y, color=None, fname=None, fig=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') if color is not None: - ax.scatter_density(x, y, color=color) + ax.scatter_density(x, y, color=color, dpi=dpi) else: - ax.scatter_density(x, y) + ax.scatter_density(x, y, dpi=dpi) if x_rng is not None and y_rng is not None: ax.set_xlim(x_rng[0], x_rng[1]) ax.set_ylim(y_rng[0], y_rng[1])