org.appliedtopology.tda4j.plot.Tweak
See theTweak companion object
trait Tweak
A change to how a plot looks, kept as a value. Add it to a plot with +, combine tweaks with +, keep them in a val and use them on every figure of a paper:
val house = Style.slides + Palette.reference + Size(960, 540)
Plot.diagram(d) + house + Labels(title = "Noisy circle") + Scale.xy(Transform.Log10)
Tweaks change independent parts of a figure (its labels, its axes, its colors, its look), so tweaks of different parts can be added in any order; of the same part, the later one wins. A Palette, a Style, Labels, Size, the Scale constructors, Text, Lines and Guide are tweaks.
A tweak that has no meaning for a plot (an axis of a 3-D scene) refuses, saying so; one that merely has nothing to change (a color scale on a figure without one) leaves the plot as it is, so that one bundle fits every plot.
Attributes
- Companion
- object
- Experimental
- true
- Source
- Tweak.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
In this article