breeze.plot
Basic 2-d plotting package. This API is very experimentable, I reserve the right to change everything.
Type members
Classlikes
Maps items to colors using the given partial function. If no color is provided for the given item, then returns PaintScale.nanPaint.
Maps items to colors using the given partial function. If no color is provided for the given item, then returns PaintScale.nanPaint.
Creates a categorical paint scale using the Category20 palette borrowed from Protovis. http://vis.stanford.edu/protovis/docs/color.html
Creates a categorical paint scale using the Category20 palette borrowed from Protovis. http://vis.stanford.edu/protovis/docs/color.html
Beware that category colors can be reused if the number of distinct items is greater than 20.
Represents a "function" T that knows its (finite) domain, and can also be applied. Typeclass.
Represents a "function" T that knows its (finite) domain, and can also be applied. Typeclass.
- Companion:
- object
Create a set of StaticHistogramBins from a number and an (eventual) lower and upper bound.
Create a set of StaticHistogramBins from a number and an (eventual) lower and upper bound.
Utility functions for exporting a Graphics2D drawable to some eps, pdf, and png.
Utility functions for exporting a Graphics2D drawable to some eps, pdf, and png.
A simple numeric paint scale for mapping a number within a range to a corresponding element of a pre-computed color gradient. Colors from the given gradient array are used linearly to represent values between lower and upper.
A simple numeric paint scale for mapping a number within a range to a corresponding element of a pre-computed color gradient. Colors from the given gradient array are used linearly to represent values between lower and upper.
Creates a GradientPaintScale from the min and max of a set of data points. bound are supplied.
Creates a GradientPaintScale from the min and max of a set of data points. bound are supplied.
Bins for a histogram. These can be implicitly constructed from:
Bins for a histogram. These can be implicitly constructed from:
x : HistogramBins = 10 // 10 dynamically determined histogram bins x : HistogramBins = Array(1.0,2.0,3.2) // five buckets wit the given splits x : HistogramBins = (0,100,10) // ten bins evenly dividing 0 to 100.
- Companion:
- object
Static constructors for HistogramBins.
Static constructors for HistogramBins.
- Companion:
- class
Maps items of type T to a well defined Paint (usually a color).
Maps items of type T to a well defined Paint (usually a color).
An implicit conversion exists to make a singleton PaintScaleFactory from a PaintScale instance, which means that PaintScales can be provided directly whenever a PaintScaleFactory is required.
- Companion:
- object
Constructs a PaintScale for the given type T by examining a set of its values.
Constructs a PaintScale for the given type T by examining a set of its values.
- Companion:
- object
Maintains a set of series (or more strictly, the data from those series) and the necessary JFreeChart stuff to plot them.
Maintains a set of series (or more strictly, the data from those series) and the necessary JFreeChart stuff to plot them.
- Companion:
- object
A Series is anything that can be added to a breeze.plot.Plot and plotted
A Series is anything that can be added to a breeze.plot.Plot and plotted
Set of histograms for binning data using the given splits.
Set of histograms for binning data using the given splits.
An XY dataset consisting of some number of named series, each consisting of items of type Item, with an associated x value, y value, and optionally a name and tooltip.
An XY dataset consisting of some number of named series, each consisting of items of type Item, with an associated x value, y value, and optionally a name and tooltip.
- Companion:
- object
An XYX dataset consisting of some number of named series, each consisting of items of type Item, with an associated x value, y value, z value, and optionally a name and tooltip.
An XYX dataset consisting of some number of named series, each consisting of items of type Item, with an associated x value, y value, z value, and optionally a name and tooltip.
- Companion:
- object
Value members
Concrete methods
Plots a histogram of the given data into the given number of bins
Plots a histogram of the given data into the given number of bins
Displays an image in the current figure, where each cell in the matrix provides color for one square of the image.
Displays an image in the current figure, where each cell in the matrix provides color for one square of the image.
- Value parameters:
- img
A matrix containing the colors to plot
- labels
Labels for some subset of the data points
- name
Series name
- offset
Offset for indexing the top-left corner of the matrix
- scale
Scale used for converting matrix values to colors.
- tips
Tooltip popups for some subset of the data points
Plots the given y versus the given x with the given style.
Plots the given y versus the given x with the given style.
- Value parameters:
- labels
Optional in-graph labels for some points.
- name
Name of the series to show in the legend.
- style
Matlab-like style spec of the series to plot.
- tips
Optional mouse-over tooltips for some points.
- x
X-coordinates, co-indexed with y (and indexed by keys of type K).
- y
Y-coordinates, co-indexed with x (and indexed by keys of type K).
Displays a scatter plot of x versus y, each point drawn at the given size and mapped with the given color.
Displays a scatter plot of x versus y, each point drawn at the given size and mapped with the given color.
Example usage: https://gist.github.com/1288473
- Value parameters:
- c
A partial function (e.g. a Map) from item ids to the color to draw the bubble. Missing colors are drawn with a hashed pattern.
- labels
Labels to draw next to each point.
- name
Series name for legend
- size
The size of each circle (on the same scale as the domain axis)
- tips
Tooltips to show on mouseover for each point.
- x
The x coordinates to draw as provided by anything that can be seen as a Tensor1.
- y
The y coordinates to draw as provided by anything that can be seen as a Tensor1.