final case class Style(font: String = ..., textScale: Double = ..., markScale: Double = ..., grid: Boolean = ..., legend: Optional[LegendPosition] = ..., transparent: Optional[Boolean] = ...) extends Tweak
The look of a figure that is not its data: the font, the size of the text and of the marks, the gridlines, the legend's place and the background. A style says nothing about what is drawn, so one value serves every figure of a paper or a talk: fig + Style.slides.
A style replaces the figure's whole style; to change one setting of a style, Style.slides.copy(grid = false). (Theme is something else: whether colors are light, dark, or follow the reader.)
Value parameters
font
the CSS font-family of every text
grid
false to draw no gridlines on either axis
legend
where the legend goes; unset, a plot has its own place (beside the plot, or at the lower right of a persistence diagram)
markScale
a factor on the size of markers and the width of lines
textScale
a factor on every text size, and on the margins that make room for text
transparent
true to draw no background anywhere, so that the figure takes the color of the page behind it; false to draw the palette's surface everywhere; unset, a figure shown on a page or in the viewer has it (cream, for the default palette) and a saved .svg has none, as a figure deployed elsewhere should take the color of its new page