Axis

org.appliedtopology.tda4j.plot.Axis
final case class Axis(label: String = ..., min: Option[Double] = ..., max: Option[Double] = ..., ticks: Ticks = ..., extra: IndexedSeq[(Double, String)] = ..., grid: Boolean = ..., visible: Boolean = ..., transform: Transform = ..., format: Option[String] = ..., minusInfinity: Option[Boolean] = ..., side: Option[Side] = ..., reverse: Boolean = ..., padding: Option[Double] = ..., crossesAt: Option[Double] = ...)

One axis. min and max fix the ends of the visible range in data units (otherwise the marks' extent, padded); transform is the scale the data are drawn on; ticks chooses the tick positions and extra adds labelled ones (the ∞ mark); format is a printf pattern for the numbers; visible = false drops ticks, labels and baseline (a point cloud's frame). On a log axis what is at 0 (an H0 bar's birth) sits on a -∞ line below the lowest number, as an essential bar ends at ∞: minusInfinity = None draws the line when something is there, Some(true) always (panels that must line up), Some(false) never, leaving what is at 0 out and counting it. reverse runs the axis the other way (large values at the left, or at the bottom); padding is the fraction of the data's extent left empty at each end when the range is not fixed (default 0.04). side puts the axis on the other side of the plot (an x axis at the Top, a y axis at the Right). crossesAt draws the axis where the other axis has that value (an x axis through y = 0, a y axis through x = 0), in the data units of the other axis, with the numbers beside it and the label at the edge; a value the other axis does not show leaves the axis at the edge. Change an axis of a figure with Scale.x(...) and Labels(x = ...).

Attributes

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

Members list

Value members

Concrete methods

def range: Option[(Double, Double)]

Both ends, when both are fixed.

Both ends, when both are fixed.

Attributes

Source
Figure.scala
def sideOr(default: Side): Side

Where the axis sits: side, or the bottom of an x axis and the left of a y axis, which are the defaults.

Where the axis sits: side, or the bottom of an x axis and the left of a y axis, which are the defaults.

Attributes

Source
Figure.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