Axis
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 Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any