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

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichPlot
  2. OverlayImplicits
  3. PlotDefaultsImplicits
  4. PadImplicits
  5. LegendImplicits
  6. LabelImplicits
  7. FacetLabelImplicits
  8. BorderPlotImplicits
  9. BackgroundImplicits
  10. AnnotationImplicits
  11. PlotLineImplicits
  12. AxesImplicits
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RichPlot(plot: Plot)

Value Members

  1. 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
  2. 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
  3. 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
  4. def background()(implicit theme: Theme): Plot

    Add a solid background.

    Add a solid background.

    Definition Classes
    BackgroundImplicits
  5. def background(color: Color): Plot

    Add a solid background.

    Add a solid background.

    color

    The background color

    Definition Classes
    BackgroundImplicits
  6. 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
  7. def bottomLabel(label: String, size: Option[Double] = None, color: Option[Color] = None)(implicit theme: Theme): Plot
    Definition Classes
    LabelImplicits
  8. def bottomLabel(d: Drawable): Plot
    Definition Classes
    LabelImplicits
  9. def bottomLabel(f: (Extent) => Drawable, height: Double): Plot
    Definition Classes
    LabelImplicits
  10. def bottomLabels(labels: Seq[String])(implicit theme: Theme): Plot

    Add a label below each facet.

    Add a label below each facet.

    labels

    The labels for each facet.

    Definition Classes
    FacetLabelImplicits
  11. 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
  12. 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
  13. 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
  14. 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
  15. val defaultSize: Double
    Definition Classes
    BorderPlotImplicits
  16. val defaultThickness: Double
    Definition Classes
    PlotLineImplicits
  17. 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
  18. def frame(color: Color, strokeWidth: Double): Plot

    Add a border frame around the plot.

    Add a border frame around the plot.

    Definition Classes
    BackgroundImplicits
  19. def frame()(implicit theme: Theme): Plot

    Add a border frame around the plot.

    Add a border frame around the plot.

    Definition Classes
    BackgroundImplicits
  20. 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
  21. def function(fn: (Double) => Double)(implicit theme: Theme): Plot

    Plot a function.

    Plot a function. For lines, trend is more efficient.

    Definition Classes
    PlotLineImplicits
  22. def hline(y: Double, color: Color, thickness: Double = defaultThickness, lineStyle: LineStyle = LineStyle.Solid): Plot
    Definition Classes
    PlotLineImplicits
  23. def hline(y: Double)(implicit theme: Theme): Plot
    Definition Classes
    PlotLineImplicits
  24. def leftLabel(label: String, size: Option[Double] = None, color: Option[Color] = None)(implicit theme: Theme): Plot
    Definition Classes
    LabelImplicits
  25. def leftLabel(d: Drawable): Plot
    Definition Classes
    LabelImplicits
  26. def leftLabel(f: (Extent) => Drawable, width: Double): Plot
    Definition Classes
    LabelImplicits
  27. 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
  28. 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
  29. 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
  30. 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
  31. def overlay(plot2: Plot): Plot
    Definition Classes
    OverlayImplicits
  32. 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
  33. def padBottom(size: Double): Plot
    Definition Classes
    PadImplicits
  34. def padLeft(size: Double): Plot
    Definition Classes
    PadImplicits
  35. def padRight(size: Double): Plot
    Definition Classes
    PadImplicits
  36. def padTop(size: Double): Plot
    Definition Classes
    PadImplicits
  37. 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
  38. def rightLabel(label: String, size: Option[Double] = None, color: Option[Color] = None)(implicit theme: Theme): Plot
    Definition Classes
    LabelImplicits
  39. def rightLabel(d: Drawable): Plot
    Definition Classes
    LabelImplicits
  40. def rightLabel(f: (Extent) => Drawable, width: Double): Plot
    Definition Classes
    LabelImplicits
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. def title(label: String, size: Option[Double] = None, color: Option[Color] = None)(implicit theme: Theme): Plot
    Definition Classes
    LabelImplicits
  47. def title(d: Drawable): Plot
    Definition Classes
    LabelImplicits
  48. def topLabel(label: String, size: Option[Double] = None, color: Option[Color] = None)(implicit theme: Theme): Plot
    Definition Classes
    LabelImplicits
  49. def topLabel(d: Drawable): Plot
    Definition Classes
    LabelImplicits
  50. def topLabel(f: (Extent) => Drawable, height: Double): Plot
    Definition Classes
    LabelImplicits
  51. def topLabels(labels: Seq[String])(implicit theme: Theme): Plot

    Add a label above each facet.

    Add a label above each facet.

    labels

    The labels for each facet.

    Definition Classes
    FacetLabelImplicits
  52. 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
  53. 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
  54. 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
  55. def trend(slope: Double, intercept: Double, color: Color, thickness: Double = defaultThickness, lineStyle: LineStyle = LineStyle.Solid): Plot
    Definition Classes
    PlotLineImplicits
  56. def trend(slope: Double, intercept: Double)(implicit theme: Theme): Plot
    Definition Classes
    PlotLineImplicits
  57. def vline(x: Double, color: Color, thickness: Double = defaultThickness, lineStyle: LineStyle = LineStyle.Solid): Plot
    Definition Classes
    PlotLineImplicits
  58. def vline(x: Double)(implicit theme: Theme): Plot
    Definition Classes
    PlotLineImplicits
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. def xLabel(label: String, size: Option[Double] = None, color: Option[Color] = None)(implicit theme: Theme): Plot
    Definition Classes
    LabelImplicits
  66. def xLabel(d: Drawable): Plot
    Definition Classes
    LabelImplicits
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. def yLabel(label: String, size: Option[Double] = None, color: Option[Color] = None)(implicit theme: Theme): Plot
    Definition Classes
    LabelImplicits
  74. def yLabel(d: Drawable): Plot
    Definition Classes
    LabelImplicits