[plotter] fix mask bug in particles + new default for tight_layout

This commit is contained in:
Noe Brucy
2021-07-23 00:09:58 +02:00
parent 83a20d03a2
commit 12daf7588a
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -386,7 +386,7 @@ class Plotter(Aggregator, BaseProcessor):
if self._needs_computation(overwrite, plot_filename):
plot_info = rule.process(arg, **kwargs)
if not self.params.out.interactive and close:
if self.params.plot.tight_layout and close:
plt.tight_layout(pad=1)
if self.params.out.save:
@@ -838,7 +838,7 @@ class Plotter(Aggregator, BaseProcessor):
part_v = part_v[mask]
# Scatter plot
plt.scatter(part_h, part_v, s=mass / 5e3, **kwargs)
plt.scatter(part_h, part_v, s=mass[mask] / 5e3, **kwargs)
def _overlay_speed(
self, ax_los, im_extent, unit=U.km_s, unit_coeff=1.0, key_v=None, **kwargs