Lines

org.appliedtopology.tda4j.plot.Lines
object Lines

The look of the lines of a plot: gridlines, the axis lines, tick marks, and a frame around the plot area. Each changes only what it is given (width, a color or a palette paint, dash, opacity, visible):

Plot.diagram(d).withGridLines(dash = Dash.Dotted).withTickMarks(length = 4).withFrame()

The minor gridlines, the minor tick marks and the frame are not drawn unless asked: giving any of them a setting turns it on (visible = false turns it off). Tick marks have a length in pixels (0 is none) and a direction, out of the plot or into it; asked for with no length they are 4 pixels, minor ones 2.5. On a log axis the minor ones are the 2 to 9 of each decade; on any other axis the halves between two ticks.

Attributes

Experimental
true
Source
ElementTweaks.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Lines.type

Members list

Value members

Concrete methods

def axis(width: Optional[Double] = ..., color: Optional[String] = ..., paint: Optional[Paint] = ..., dash: Optional[Dash] = ..., opacity: Optional[Double] = ..., visible: Optional[Boolean] = ...): Tweak

The axis lines (visible = false keeps the ticks and numbers and drops the line).

The axis lines (visible = false keeps the ticks and numbers and drops the line).

Attributes

Source
ElementTweaks.scala
def frame(width: Optional[Double] = ..., color: Optional[String] = ..., paint: Optional[Paint] = ..., dash: Optional[Dash] = ..., opacity: Optional[Double] = ..., visible: Optional[Boolean] = ...): Tweak

A frame around the plot area, drawn over the marks: off unless asked for.

A frame around the plot area, drawn over the marks: off unless asked for.

Attributes

Source
ElementTweaks.scala
def grid(width: Optional[Double] = ..., color: Optional[String] = ..., paint: Optional[Paint] = ..., dash: Optional[Dash] = ..., opacity: Optional[Double] = ..., visible: Optional[Boolean] = ...): Tweak

The gridlines. (Scale.x(grid = false) turns one axis's off, Style(grid = false) all.)

The gridlines. (Scale.x(grid = false) turns one axis's off, Style(grid = false) all.)

Attributes

Source
ElementTweaks.scala
def minorGrid(width: Optional[Double] = ..., color: Optional[String] = ..., paint: Optional[Paint] = ..., dash: Optional[Dash] = ..., opacity: Optional[Double] = ..., visible: Optional[Boolean] = ...): Tweak

The minor gridlines, between the ticks: off unless asked for.

The minor gridlines, between the ticks: off unless asked for.

Attributes

Source
ElementTweaks.scala
def minorTicks(length: Optional[Double] = ..., direction: Optional[TickDirection] = ..., width: Optional[Double] = ..., color: Optional[String] = ..., paint: Optional[Paint] = ..., opacity: Optional[Double] = ..., visible: Optional[Boolean] = ...): Tweak

The minor tick marks, between the major ones: off unless asked for.

The minor tick marks, between the major ones: off unless asked for.

Attributes

Source
ElementTweaks.scala
def ticks(length: Optional[Double] = ..., direction: Optional[TickDirection] = ..., width: Optional[Double] = ..., color: Optional[String] = ..., paint: Optional[Paint] = ..., opacity: Optional[Double] = ..., visible: Optional[Boolean] = ...): Tweak

The tick marks at the major ticks of both axes: length in pixels, direction Out of the plot (default) or In. They are on a side where the axis is: they follow it to the top or the right.

The tick marks at the major ticks of both axes: length in pixels, direction Out of the plot (default) or In. They are on a side where the axis is: they follow it to the top or the right.

Attributes

Source
ElementTweaks.scala