implicit class RichPlot extends AxesImplicits with PlotLineImplicits with AnnotationImplicits with BackgroundImplicits with BorderPlotImplicits with FacetLabelImplicits with LabelImplicits with LegendImplicits with PadImplicits with PlotDefaultsImplicits with OverlayImplicits
- Alphabetic
- By Inheritance
- RichPlot
- OverlayImplicits
- PlotDefaultsImplicits
- PadImplicits
- LegendImplicits
- LabelImplicits
- FacetLabelImplicits
- BorderPlotImplicits
- BackgroundImplicits
- AnnotationImplicits
- PlotLineImplicits
- AxesImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
annotate(msg: String, x: Double = 1.0, y: Double = 0.5)(implicit theme: Theme): Plot
Add a text annotation to the plot.
Add a text annotation to the plot.
- msg
The annotation.
- x
The X coordinate (between 0 and 1).
- y
The Y coordinate (between 0 and 1).
- Definition Classes
- AnnotationImplicits
-
def
annotate(d: Drawable, x: Double, y: Double): Plot
Add a drawable annotation to the plot
Add a drawable annotation to the plot
- d
The annotation.
- x
The X coordinate (between 0 and 1).
- y
The Y coordinate (between 0 and 1).
- Definition Classes
- AnnotationImplicits
-
def
annotate(f: (Plot, Extent) ⇒ Drawable, x: Double, y: Double): Plot
Add an annotation to the plot.
Add an annotation to the plot.
- f
A function to create the drawable to render.
- x
The X coordinate to plot the drawable (between 0 and 1).
- y
The Y coordinate to plot the drawable (between 0 and 1).
- returns
The updated plot.
- Definition Classes
- AnnotationImplicits
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
background()(implicit theme: Theme): Plot
Add a solid background.
Add a solid background.
- Definition Classes
- BackgroundImplicits
-
def
background(color: Color): Plot
Add a solid background.
-
def
background(f: (Plot, Extent) ⇒ Drawable): Plot
Set the background (this will replace any existing background).
Set the background (this will replace any existing background).
- f
Function to render the background.
- Definition Classes
- BackgroundImplicits
-
def
bottomLabel(label: String, size: Option[Double] = None, color: Option[Color] = None)(implicit theme: Theme): Plot
- Definition Classes
- LabelImplicits
-
def
bottomLabel(d: Drawable): Plot
- Definition Classes
- LabelImplicits
-
def
bottomLabel(f: (Extent) ⇒ Drawable, height: Double): Plot
- Definition Classes
- LabelImplicits
-
def
bottomLabels(labels: Seq[String])(implicit theme: Theme): Plot
Add a label below each facet.
-
def
bottomLabels(labels: (Extent) ⇒ Seq[Drawable], height: Double): Plot
Add a label below each facet.
Add a label below each facet.
- labels
A function to return the labels of the given size.
- height
The height of the labels.
- Definition Classes
- FacetLabelImplicits
-
def
bottomLegend(renderer: LegendRenderer = LegendRenderer.horizontal(), labels: Option[Seq[String]] = None)(implicit theme: Theme): Plot
Place a legend on the bottom of the plot.
Place a legend on the bottom of the plot.
- Definition Classes
- LegendImplicits
-
def
bottomPlot(p: Plot, size: Double = defaultSize): Plot
Render a plot at the bottom border of the plot.
Render a plot at the bottom border of the plot.
- p
The plot to render at bottom.
- Definition Classes
- BorderPlotImplicits
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
def
continuousAxis(boundsFn: (Plot) ⇒ Bounds, position: Position, tickCount: Option[Int] = None, tickRenderer: Option[TickRenderer] = None, labelFormatter: Option[(Double) ⇒ String] = None, tickCountRange: Option[Seq[Int]] = None, updatePlotBounds: Boolean = true)(implicit theme: Theme): Plot
Add a continuous axis to the plot.
Add a continuous axis to the plot.
- boundsFn
Takes a plot and returns the bounds this axis will display.
- position
The side of the plot to add the axis.
- tickCount
The number of tick lines.
- tickRenderer
Function to draw a tick line/label.
- labelFormatter
Custom function to format tick labels.
- tickCountRange
Allow searching over axis labels with this many ticks.
- updatePlotBounds
Set plot bounds to match the axis bounds.
- Definition Classes
- AxesImplicits
-
val
defaultSize: Double
- Definition Classes
- BorderPlotImplicits
-
val
defaultThickness: Double
- Definition Classes
- PlotLineImplicits
-
def
discreteAxis(labels: Seq[String], values: Seq[Double], position: Position, updatePlotBounds: Boolean = true, tickRenderer: Option[TickRenderer] = None, align: Double = 0.5)(implicit theme: Theme): Plot
Add a discrete axis to the plot.
Add a discrete axis to the plot.
- labels
The labels.
- values
The X value for each label.
- position
The side of the plot to add the axis.
- updatePlotBounds
Set plot bounds to match the axis bounds.
- tickRenderer
Function to draw a tick line/label.
- align
Where to align ticks as a proportion of their band, e.g. 0 = left, 0.5 = center.
- Definition Classes
- AxesImplicits
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
frame(color: Color, strokeWidth: Double): Plot
Add a border frame around the plot.
Add a border frame around the plot.
- Definition Classes
- BackgroundImplicits
-
def
frame()(implicit theme: Theme): Plot
Add a border frame around the plot.
Add a border frame around the plot.
- Definition Classes
- BackgroundImplicits
-
def
function(fn: (Double) ⇒ Double, color: Color, thickness: Double = defaultThickness, lineStyle: LineStyle = LineStyle.Solid): Plot
Plot a function.
Plot a function. For lines,
trend
is more efficient.- Definition Classes
- PlotLineImplicits
-
def
function(fn: (Double) ⇒ Double)(implicit theme: Theme): Plot
Plot a function.
Plot a function. For lines,
trend
is more efficient.- Definition Classes
- PlotLineImplicits
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hline(y: Double, color: Color, thickness: Double = defaultThickness, lineStyle: LineStyle = LineStyle.Solid): Plot
- Definition Classes
- PlotLineImplicits
-
def
hline(y: Double)(implicit theme: Theme): Plot
- Definition Classes
- PlotLineImplicits
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
leftLabel(label: String, size: Option[Double] = None, color: Option[Color] = None)(implicit theme: Theme): Plot
- Definition Classes
- LabelImplicits
-
def
leftLabel(d: Drawable): Plot
- Definition Classes
- LabelImplicits
-
def
leftLabel(f: (Extent) ⇒ Drawable, width: Double): Plot
- Definition Classes
- LabelImplicits
-
def
leftLabels(labels: Seq[String])(implicit theme: Theme): Plot
Add a label to the left of each facet.
Add a label to the left of each facet.
- Definition Classes
- FacetLabelImplicits
-
def
leftLabels(labels: (Extent) ⇒ Seq[Drawable], width: Double): Plot
Add a label to the left of each facet.
Add a label to the left of each facet.
- labels
A function to return the labels of the given size.
- width
The width of the labels.
- Definition Classes
- FacetLabelImplicits
-
def
leftLegend(renderer: LegendRenderer = LegendRenderer.vertical(), labels: Option[Seq[String]] = None)(implicit theme: Theme): Plot
Place a legend on the left side of the plot.
Place a legend on the left side of the plot.
- Definition Classes
- LegendImplicits
-
def
leftPlot(p: Plot, size: Double = defaultSize): Plot
Render a plot at the bottom border of the plot.
Render a plot at the bottom border of the plot.
- p
The plot to render at bottom.
- Definition Classes
- BorderPlotImplicits
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
overlay(plot2: Plot): Plot
- Definition Classes
- OverlayImplicits
-
def
overlayLegend(x: Double = 1.0, y: Double = 0.0, renderer: LegendRenderer = LegendRenderer.vertical(), labels: Option[Seq[String]] = None)(implicit theme: Theme): Plot
Overlay a legend on the plot.
Overlay a legend on the plot.
- x
The relative X position (0 to 1).
- y
The relative y position (0 to 1).
- renderer
The legend renderer to use.
- Definition Classes
- LegendImplicits
-
def
padBottom(size: Double): Plot
- Definition Classes
- PadImplicits
-
def
padLeft(size: Double): Plot
- Definition Classes
- PadImplicits
-
def
padRight(size: Double): Plot
- Definition Classes
- PadImplicits
-
def
padTop(size: Double): Plot
- Definition Classes
- PadImplicits
-
val
plot: Plot
- Attributes
- protected
- Definition Classes
- RichPlot → OverlayImplicits → PlotDefaultsImplicits → PadImplicits → LegendImplicits → LabelImplicits → FacetLabelImplicits → BorderPlotImplicits → BackgroundImplicits → AnnotationImplicits → PlotLineImplicits → AxesImplicits
-
def
renderLegend(renderer: LegendRenderer = LegendRenderer.vertical())(implicit theme: Theme): Option[Drawable]
Get the legend as a drawable.
Get the legend as a drawable.
- Definition Classes
- LegendImplicits
-
def
rightLabel(label: String, size: Option[Double] = None, color: Option[Color] = None)(implicit theme: Theme): Plot
- Definition Classes
- LabelImplicits
-
def
rightLabel(d: Drawable): Plot
- Definition Classes
- LabelImplicits
-
def
rightLabel(f: (Extent) ⇒ Drawable, width: Double): Plot
- Definition Classes
- LabelImplicits
-
def
rightLabels(labels: Seq[String])(implicit theme: Theme): Plot
Add a label to the right of each facet.
Add a label to the right of each facet.
- Definition Classes
- FacetLabelImplicits
-
def
rightLabels(labels: (Extent) ⇒ Seq[Drawable], width: Double): Plot
Add a label to the right of each facet.
Add a label to the right of each facet.
- labels
A function to return the labels of the given size.
- width
The width of the labels.
- Definition Classes
- FacetLabelImplicits
-
def
rightLegend(renderer: LegendRenderer = LegendRenderer.vertical(), labels: Option[Seq[String]] = None)(implicit theme: Theme): Plot
Place a legend on the right side of the plot.
Place a legend on the right side of the plot.
- Definition Classes
- LegendImplicits
-
def
rightPlot(p: Plot, size: Double = defaultSize): Plot
Render a plot at the right border of the plot.
Render a plot at the right border of the plot.
- p
The plot to render at right.
- Definition Classes
- BorderPlotImplicits
-
def
standard(xLabels: Seq[String] = Seq.empty, yLabels: Seq[String] = Seq.empty)(implicit theme: Theme): Plot
Add axes, grid lines and a frame to the plot.
Add axes, grid lines and a frame to the plot.
- xLabels
categorical labels for x axis
- yLabels
categorical labels for y axis
- Definition Classes
- PlotDefaultsImplicits
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
title(label: String, size: Option[Double] = None, color: Option[Color] = None)(implicit theme: Theme): Plot
- Definition Classes
- LabelImplicits
-
def
title(d: Drawable): Plot
- Definition Classes
- LabelImplicits
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
topLabel(label: String, size: Option[Double] = None, color: Option[Color] = None)(implicit theme: Theme): Plot
- Definition Classes
- LabelImplicits
-
def
topLabel(d: Drawable): Plot
- Definition Classes
- LabelImplicits
-
def
topLabel(f: (Extent) ⇒ Drawable, height: Double): Plot
- Definition Classes
- LabelImplicits
-
def
topLabels(labels: Seq[String])(implicit theme: Theme): Plot
Add a label above each facet.
-
def
topLabels(labels: (Extent) ⇒ Seq[Drawable], height: Double): Plot
Add a label above each facet.
Add a label above each facet.
- labels
A function to return the labels of the given size.
- height
The height of the labels.
- Definition Classes
- FacetLabelImplicits
-
def
topLegend(renderer: LegendRenderer = LegendRenderer.horizontal(), labels: Option[Seq[String]] = None)(implicit theme: Theme): Plot
Place a legend on the top of the plot.
Place a legend on the top of the plot.
- Definition Classes
- LegendImplicits
-
def
topPlot(p: Plot, size: Double = defaultSize): Plot
Render a plot at the top border of the plot.
Render a plot at the top border of the plot.
- p
The plot to render at top.
- Definition Classes
- BorderPlotImplicits
-
def
trend(slope: Double, intercept: Double, color: Color, thickness: Double = defaultThickness, lineStyle: LineStyle = LineStyle.Solid): Plot
- Definition Classes
- PlotLineImplicits
-
def
trend(slope: Double, intercept: Double)(implicit theme: Theme): Plot
- Definition Classes
- PlotLineImplicits
-
def
vline(x: Double, color: Color, thickness: Double = defaultThickness, lineStyle: LineStyle = LineStyle.Solid): Plot
- Definition Classes
- PlotLineImplicits
-
def
vline(x: Double)(implicit theme: Theme): Plot
- Definition Classes
- PlotLineImplicits
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
xAxis(labels: Seq[String], values: Seq[Double], position: Position)(implicit theme: Theme): Plot
Add an X axis to the plot.
Add an X axis to the plot.
- labels
The labels.
- values
The X value for each label.
- position
The side of the plot to add the axis.
- Definition Classes
- AxesImplicits
-
def
xAxis(labels: Seq[String], values: Seq[Double])(implicit theme: Theme): Plot
Add an X axis to the plot.
Add an X axis to the plot.
- labels
The labels.
- values
The X value for each label.
- Definition Classes
- AxesImplicits
-
def
xAxis(labels: Seq[String], position: Position)(implicit theme: Theme): Plot
Add an X axis to the plot
Add an X axis to the plot
- labels
The labels. The x values are assumed to start at 0 and increment by one for each label.
- position
The side of the plot to add the axis.
- Definition Classes
- AxesImplicits
-
def
xAxis(labels: Seq[String])(implicit theme: Theme): Plot
Add an X axis to the plot
Add an X axis to the plot
- labels
The labels. The x values are assumed to start at 0 and increment by one for each label.
- Definition Classes
- AxesImplicits
-
def
xAxis(tickCount: Option[Int] = None, tickRenderer: Option[TickRenderer] = None, labelFormatter: Option[(Double) ⇒ String] = None, tickCountRange: Option[Seq[Int]] = None, position: Position = Position.Bottom)(implicit theme: Theme): Plot
Add an X axis to the plot.
Add an X axis to the plot.
- tickCount
The number of tick lines.
- tickRenderer
Function to draw a tick line/label.
- labelFormatter
Custom function to format tick labels.
- tickCountRange
Allow searching over axis labels with this many ticks.
- position
The side of the plot to add the axis.
- Definition Classes
- AxesImplicits
-
def
xGrid(lineCount: Option[Int] = None, lineRenderer: Option[GridLineRenderer] = None, tickCountRange: Option[Seq[Int]] = None)(implicit theme: Theme): Plot
Add x grid lines to the plot.
Add x grid lines to the plot.
- lineCount
the number of grid lines to use
- lineRenderer
the grid line renderer
- Definition Classes
- AxesImplicits
-
def
xLabel(label: String, size: Option[Double] = None, color: Option[Color] = None)(implicit theme: Theme): Plot
- Definition Classes
- LabelImplicits
-
def
xLabel(d: Drawable): Plot
- Definition Classes
- LabelImplicits
-
def
yAxis(labels: Seq[String], values: Seq[Double], position: Position)(implicit theme: Theme): Plot
Add a Y axis to the plot.
Add a Y axis to the plot.
- labels
The labels.
- values
The Y value for each label.
- position
The side of the plot to add the axis.
- Definition Classes
- AxesImplicits
-
def
yAxis(labels: Seq[String], values: Seq[Double])(implicit theme: Theme): Plot
Add a Y axis to the plot.
Add a Y axis to the plot.
- labels
The labels.
- values
The Y value for each label.
- Definition Classes
- AxesImplicits
-
def
yAxis(labels: Seq[String], position: Position)(implicit theme: Theme): Plot
Add a Y axis to the plot.
Add a Y axis to the plot.
- labels
The label. The y values are assumed to start at 0 and increment by one for each label.
- position
The side of the plot to add the axis.
- Definition Classes
- AxesImplicits
-
def
yAxis(labels: Seq[String])(implicit theme: Theme): Plot
Add a Y axis to the plot.
Add a Y axis to the plot.
- labels
The label. The y values are assumed to start at 0 and increment by one for each label.
- Definition Classes
- AxesImplicits
-
def
yAxis(tickCount: Option[Int] = None, tickRenderer: Option[TickRenderer] = None, labelFormatter: Option[(Double) ⇒ String] = None, tickCountRange: Option[Seq[Int]] = None, position: Position = Position.Left)(implicit theme: Theme): Plot
Add a Y axis to the plot.
Add a Y axis to the plot.
- tickCount
The number of tick lines.
- tickRenderer
Function to draw a tick line/label.
- labelFormatter
Custom function to format tick labels.
- tickCountRange
Allow searching over axis labels with this many ticks.
- position
The side of the plot to add the axis.
- Definition Classes
- AxesImplicits
-
def
yGrid(lineCount: Option[Int] = None, lineRenderer: Option[GridLineRenderer] = None, tickCountRange: Option[Seq[Int]] = None)(implicit theme: Theme): Plot
Add y grid lines to the plot.
Add y grid lines to the plot.
- lineCount
the number of grid lines to use
- lineRenderer
the grid line renderer
- Definition Classes
- AxesImplicits
-
def
yLabel(label: String, size: Option[Double] = None, color: Option[Color] = None)(implicit theme: Theme): Plot
- Definition Classes
- LabelImplicits
-
def
yLabel(d: Drawable): Plot
- Definition Classes
- LabelImplicits
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated