message: plotting almost empty diagrams
diff: @@ -222,14 +222,12 @@ class Tomato:
  """
  import matplotlib.pyplot as plt
  - if self.diagram_.size > 0:
  - plt.plot(self.diagram_[:, 0], self.diagram_[:, 1], "ro")
  - l = self.diagram_[:, 1].min()
  - r = max(self.diagram_[:, 0].max(), self.max_density_per_cc_.max())
  - else:
  l = self.max_density_per_cc_.min()
  r = self.max_density_per_cc_.max()
  - #FIXME: move this out of the else, for diagrams with one point on the diagonal and an infinite point with the same coordinate?
  + if self.diagram_.size > 0:
  + plt.plot(self.diagram_[:, 0], self.diagram_[:, 1], "ro")
  + l = min(l, self.diagram_[:, 1].min())
  + r = max(r, self.diagram_[:, 0].max())
  if l == r:
  if l > 0:
  l, r = .9 * l, 1.1 * r
  