Elements

org.appliedtopology.tda4j.plot.Elements
See theElements companion object
final case class Elements(text: Map[TextRole, TextStyle] = ..., grid: LineStyle = ..., minorGrid: LineStyle = ..., axis: LineStyle = ..., ticks: TickStyle = ..., minorTicks: TickStyle = ..., frame: LineStyle = ..., panel: Option[(Paint, Double)] = ..., marker: MarkerStyle = ..., numbers: NumberStyle = ..., legendBox: LegendBox = ...)

The finer-grained look of a figure: what each piece of text, the gridlines, the axis lines, the tick marks, a frame and the plot area's own fill are like, where the plot's Style has only the font, the scales of text and marks, the legend's place and the background.

It sits beside the style, not in it, so that a Style added later does not undo it and tweaks of both come in any order. Change it with the Text(...), Lines.grid(...), Lines.ticks(...), Guide.panel(...) tweaks, each of which changes only what it is given.

Value parameters

legendBox

the box round the legend and its columns

marker

what to change about every point's marker (the shape, size, opacity, fill and edge)

numbers

how the numbers of the tick labels and the color bar are written

panel

the fill of the plot area, if it has one

text

the look of each text role that was changed

Attributes

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

Members list

Value members

Concrete methods

Attributes

Source
Elements.scala
def face(role: TextRole): TextFace

The text of role as it is drawn.

The text of role as it is drawn.

Attributes

Source
Elements.scala

Attributes

Source
Elements.scala

Attributes

Source
Elements.scala
def legendBoxDrawn: Boolean

Whether the legend has a box: a fill, or a frame that shows.

Whether the legend has a box: a fill, or a frame that shows.

Attributes

Source
Elements.scala

The line round the legend's box: off unless asked for.

The line round the legend's box: off unless asked for.

Attributes

Source
Elements.scala
def legendPadding: Double

The room between the legend's box and its entries, in pixels before the legend's text scale.

The room between the legend's box and its entries, in pixels before the legend's text scale.

Attributes

Source
Elements.scala

Attributes

Source
Elements.scala

Attributes

Source
Elements.scala

Attributes

Source
Elements.scala
def withText(role: TextRole, style: TextStyle): Elements

This with style merged into what the text role role has.

This with style merged into what the text role role has.

Attributes

Source
Elements.scala

Inherited methods

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