Settings

org.appliedtopology.tda4j.plot.Settings
object Settings

Changes written as element.property=value text, the way MATLAB, Java and the command line (--set) reach what Text(...), Lines.grid(...), Guide.panel(...) and Scale.x(position = ...) do:

Settings.parse("title.size=18")           // Text(TextRole.Title, size = 18)
Settings.parse("tick-label.angle=45")
Settings.parse("grid.dash=dotted")
Settings.parse("ticks.length=4")
Settings.parse("diagonal.shade=none")
Settings.parse("x-axis=top")

The elements are the text roles (title, subtitle, axis-label, tick-label, legend, legend-title, color-title, note) with the properties size, weight, italic, align, angle, font and color; grid, minor-grid, axis-line and frame with visible, width, color, dash, opacity; ticks and minor-ticks with length, direction, visible, width, color, opacity; panel with color, opacity, visible; legend-box with background (a color, or none for no box at all), opacity, frame (a color or none), frame-width, padding and columns; diagonal with shade (none or a color), shade-opacity, color, width, dashed; marker with shape (a name, a matplotlib code, an R pch, glyph:text; see MarkerStyle.named), size, opacity, fill, edge-width (0 for none), edge-color, edge-opacity, edge-dash, edge-visible; degree-0, degree-1, ... with color, dark-color, label and the marker properties; segments (width, opacity), polygons and discs (opacity), lines (width); numbers (locale, decimal, grouping, minus); size (width, height, in pixels or with in, cm, mm, pt); camera (azimuth, elevation, zoom, of a 3-D scene); palette and style alone (palette=print); aspect (1, or free); and x-axis and y-axis, alone (x-axis=top) or with side, reverse, padding, min, max, format, crosses-at (the value of the other axis it goes through).

Attributes

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

Members list

Value members

Concrete methods

def parse(spec: String): Tweak

The change spec (element.property=value) stands for.

The change spec (element.property=value) stands for.

Attributes

Source
ElementTweaks.scala
def parseAll(specs: Seq[String]): Option[Tweak]

The changes of each of specs, in order, as one tweak; None for no settings.

The changes of each of specs, in order, as one tweak; None for no settings.

Attributes

Source
ElementTweaks.scala