Tweak

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 Object
trait Matchable
class Any
Known subtypes
class Labels
class Palette
class Size
class Style
class Both

Members list

Value members

Abstract methods

def onFigure(figure: Figure): Figure

figure with this change.

figure with this change.

Attributes

Source
Tweak.scala

Concrete methods

def +(that: Tweak): Tweak

This change, then that one.

This change, then that one.

Attributes

Source
Tweak.scala
def onBoard(board: Board): Board

board with this change in every figure of it.

board with this change in every figure of it.

Attributes

Source
Tweak.scala

page with this change in every panel of it; a tweak a 3-D panel cannot have leaves that panel as it is.

page with this change in every panel of it; a tweak a 3-D panel cannot have leaves that panel as it is.

Attributes

Source
Tweak.scala
def onScene(scene: Scene): Scene

scene with this change: only tweaks of the labels, the size and the look apply to a 3-D scene.

scene with this change: only tweaks of the labels, the size and the look apply to a 3-D scene.

Attributes

Source
Tweak.scala