Board

org.appliedtopology.tda4j.plot.Board
See theBoard companion object
final case class Board(plots: Seq[Figure], title: String = ..., layout: Option[Layout] = ..., slots: Seq[Slot] = ..., heading: String = ...) extends Plot

Plots side by side, in one row (small multiples: a barcode next to its diagram, a complex at several scales), or on a Layout grid, where a panel can span several rows and columns (Plot.layout(2, 3).place(...)).

Value parameters

heading

a title drawn above the panels, set with Labels(title = ...); title is the page's own and is drawn only as this

layout

the grid the panels are placed on; none for a row

slots

where each of plots sits on layout, in the same order

Attributes

Companion
object
Experimental
true
Source
Plot.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Plot
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def +(tweak: Tweak): Board

This board with the change tweak makes in every panel (Labels(title = ...) titles the board, the page). On a layout the grid sets the size of a panel, whatever Size says.

This board with the change tweak makes in every panel (Labels(title = ...) titles the board, the page). On a layout the grid sets the size of a panel, whatever Size says.

Attributes

Source
Plot.scala
def fragment(theme: Theme = ...): String

The plot as a fragment to embed in a page (an ``, or a `

The plot as a fragment to embed in a page (an ``, or a `

` with its own script for 3-D).

Attributes

Source
Plot.scala
def html(theme: Theme = ...): String

A complete HTML page, following the reader's light or dark setting under Theme.Auto.

A complete HTML page, following the reader's light or dark setting under Theme.Auto.

Attributes

Source
Plot.scala
def place(figure: Figure, row: Int, col: Int, rowSpan: Int = ..., colSpan: Int = ..., fill: Boolean = ...): Board

figure on the layout, with its top left corner in cell (row, col) and spanning rowSpan rows and colSpan columns: Plot.layout(2, 3).place(a, 0, 0, colSpan = 2).place(b, 0, 2).place(c, 1, 0, colSpan = 3). A panel is as large as the cells it spans, and its axes run across them. A board that is a row has no cells: start from Plot.layout.

figure on the layout, with its top left corner in cell (row, col) and spanning rowSpan rows and colSpan columns: Plot.layout(2, 3).place(a, 0, 0, colSpan = 2).place(b, 0, 2).place(c, 1, 0, colSpan = 3). A panel is as large as the cells it spans, and its axes run across them. A board that is a row has no cells: start from Plot.layout.

A persistence diagram keeps equal units on its axes, so in a wide cell its data take a square in the middle. fill = true gives that up for this panel (withAspect(free = true)), and the plot fills the cell.

Attributes

Source
Plot.scala
def place(figure: Figure, row: Int, col: Int): Board

figure in cell (row, col), one cell large.

figure in cell (row, col), one cell large.

Attributes

Source
Plot.scala
def place(figure: Figure, row: Int, col: Int, rowSpan: Int, colSpan: Int): Board

figure from cell (row, col) over rowSpan rows and colSpan columns.

figure from cell (row, col) over rowSpan rows and colSpan columns.

Attributes

Source
Plot.scala
def shared(): Board

Every panel on one scale, on both axes.

Every panel on one scale, on both axes.

Attributes

Source
Plot.scala
def shared(x: Boolean = ..., y: Boolean = ...): Board

The panels on one scale, so that what is drawn at the same height means the same in each: every panel takes the union of the panels' ranges on the axes asked for. The panels must draw those axes on the same Transform.

The panels on one scale, so that what is drawn at the same height means the same in each: every panel takes the union of the panels' ranges on the axes asked for. The panels must draw those axes on the same Transform.

Attributes

Source
Plot.scala

The panels over the same columns on one x scale (a column of plots of one quantity), each column its own.

The panels over the same columns on one x scale (a column of plots of one quantity), each column its own.

Attributes

Source
Plot.scala
def sharedRows(): Board

The panels across the same rows on one y scale, each row its own.

The panels across the same rows on one y scale, each row its own.

Attributes

Source
Plot.scala
def svgFile(theme: Theme = ...): String

A complete SVG document in plain colors (for a 3-D scene: one fixed view), with no background unless the style asks for one (Style.print, or Style.transparent = false), so that it takes the color of the page it goes onto.

A complete SVG document in plain colors (for a 3-D scene: one fixed view), with no background unless the style asks for one (Style.print, or Style.transparent = false), so that it takes the color of the page it goes onto.

Attributes

Source
Plot.scala
def tagged(): Board

The panels lettered (a), (b), ...

The panels lettered (a), (b), ...

Attributes

Source
Plot.scala
def tagged(format: String = ..., sequence: String = ...): Board

The panels lettered, as a paper does: tagged() is (a), (b), ...; tagged("%s.", "A") is A., B.; tagged("%s)", "1") is 1), 2). format takes the letter at its %s, and sequence is where the letters start: a, A or 1. Panels are lettered in the order they were added.

The panels lettered, as a paper does: tagged() is (a), (b), ...; tagged("%s.", "A") is A., B.; tagged("%s)", "1") is 1), 2). format takes the letter at its %s, and sequence is where the letters start: a, A or 1. Panels are lettered in the order they were added.

Attributes

Source
Plot.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
Plot.scala
def withPalette(name: String): Board

Every panel in the palette called name: brand, reference, print, grayscale, okabe-ito or clear.

Every panel in the palette called name: brand, reference, print, grayscale, okabe-ito or clear.

Attributes

Source
Plot.scala
def withSetting(spec: String): Board

One change written as text, element.property=value, to every panel. See Settings.

One change written as text, element.property=value, to every panel. See Settings.

Attributes

Source
Plot.scala
def withStyle(name: String): Board

Every panel in the style called name: default, slides, print or clear.

Every panel in the style called name: default, slides, print or clear.

Attributes

Source
Plot.scala
def withTextScale(factor: Double): Board

A factor on every text size of every panel.

A factor on every text size of every panel.

Attributes

Source
Plot.scala
def withTitle(text: String): Board

The title of the board, above the panels and as the page's title.

The title of the board, above the panels and as the page's title.

Attributes

Source
Plot.scala

Inherited methods

def fragment(theme: String): String

fragment in the theme called theme (auto, light or dark), for callers that have a word, not a Theme (Python: a notebook shows an interactive plot by its fragment).

fragment in the theme called theme (auto, light or dark), for callers that have a word, not a Theme (Python: a notebook shows an interactive plot by its fragment).

Attributes

Inherited from:
Plot
Source
Plot.scala
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala
def save(path: String, theme: String): String

save in the theme called theme (auto, light or dark), for callers that have a word, not a Theme (MATLAB: fig.save('diagram.svg', 'dark')).

save in the theme called theme (auto, light or dark), for callers that have a word, not a Theme (MATLAB: fig.save('diagram.svg', 'dark')).

Attributes

Inherited from:
Plot
Source
Plot.scala
def save(path: String): String

save in the default theme for the file type, for callers that cannot use a default argument (Java, MATLAB: fig.save('diagram.svg')).

save in the default theme for the file type, for callers that cannot use a default argument (Java, MATLAB: fig.save('diagram.svg')).

Attributes

Inherited from:
Plot
Source
Plot.scala
def save(path: String, theme: Option[Theme] = ...): String

Writes the plot to path: an .svg file in plain light colors with no background (another theme on request; see svgFile), or an .html page (interactive for 3-D) that follows the reader's light or dark setting and has its background. Returns the absolute path.

Writes the plot to path: an .svg file in plain light colors with no background (another theme on request; see svgFile), or an .html page (interactive for 3-D) that follows the reader's light or dark setting and has its background. Returns the absolute path.

Attributes

Inherited from:
Plot
Source
Plot.scala
def view(): this.type

Shows the plot in the live viewer, a browser tab that adds every plot view()ed (see Viewer). Inside Plot.viewWith the plot goes to the program that hosts the session instead.

Shows the plot in the live viewer, a browser tab that adds every plot view()ed (see Viewer). Inside Plot.viewWith the plot goes to the program that hosts the session instead.

Attributes

Inherited from:
Plot
Source
Plot.scala