final case class Diagonal(offset: Double = ..., paint: Paint = ..., width: Double = ..., dashed: Boolean = ..., shade: Option[Paint] = ..., shadeOpacity: Double = ...) extends Mark
The line y = x + offset across the whole plot, with the region below the line shaded when shade is given: a persistence diagram's diagonal, or (offset > 0, dashed) the line above which a bar persists longer than offset. It is drawn in the plot's own scales, so it stays the line y = x on log axes, and it takes no part in choosing the visible range.