Documentation ¶
Index ¶
- Variables
- func NewEntryPairsHistogram(pairs EntryPairs, n int) *plotter.Histogram
- func NewScaledEntryPairsHistogram(pairs EntryPairs, n int, min time.Duration, max time.Duration) *plotter.Histogram
- type Board
- type LineThumbnailer
- type Rect
- type SubPlot
- type TimelinesPlotter
- type UniformBoard
- func NewCorrelationBoard(timelines Timelines) (*UniformBoard, error)
- func NewEntryPairsHistogramBoard(timelines Timelines) *UniformBoard
- func NewGroupedCorrelationBoard(group *GroupedTimelines) (*UniformBoard, error)
- func NewGroupedTimelineEntryPairsHistogramBoard(group *GroupedTimelines) *UniformBoard
- func NewUniformBoard(horizontal int, vertical int, padding float64) *UniformBoard
Constants ¶
This section is empty.
Variables ¶
var OrderedColors = []color.RGBA{
{0, 0, 0, 255},
{255, 0, 0, 255},
{0, 200, 0, 255},
{0, 0, 255, 255},
{125, 0, 0, 255},
{0, 125, 0, 255},
{0, 0, 125, 255},
{125, 125, 0, 255},
{125, 0, 125, 255},
{0, 125, 125, 255},
{125, 125, 125, 255},
{255, 125, 0, 255},
{0, 125, 255, 255},
{0, 0, 0, 255},
{200, 200, 200, 255},
{255, 0, 0, 255},
{0, 200, 0, 255},
{0, 0, 255, 255},
{125, 0, 0, 255},
{0, 125, 0, 255},
{0, 0, 125, 255},
{125, 125, 0, 255},
{125, 0, 125, 255},
{0, 125, 125, 255},
{125, 125, 125, 255},
{200, 200, 200, 255},
{255, 125, 0, 255},
{0, 125, 255, 255},
}
Functions ¶
func NewEntryPairsHistogram ¶
NewEntryPairsHistogram plots a Historam (using n bins) of the durations in the passed in EntryPairs The weight (i.e. height) of each bin is simply the number of pairs in the bin. The minimum and maximum bins are computed from the minimum/maximum duration in the EntryPairs collection
func NewScaledEntryPairsHistogram ¶
func NewScaledEntryPairsHistogram(pairs EntryPairs, n int, min time.Duration, max time.Duration) *plotter.Histogram
NewScaledEntyrPairsHistogram allows you to specify the minimum and maximum bounds of the Histogram. This is useful to compare different EntryPairs on equal footing.
Types ¶
type Board ¶
type Board struct {
SubPlots []*SubPlot
}
Board represents a collection of SubPlots
func (*Board) AddSubPlot ¶
AddSubPlot adds a plotinum plot as a SubPlot on the board.
Rect represents the rectangle the SubPlot will occupy -- the entire board has width 1.0 and height 1.0 and the rectangle (called a unit rectangle) should consume some fraction of this space.
type LineThumbnailer ¶
func (*LineThumbnailer) Thumbnail ¶
func (l *LineThumbnailer) Thumbnail(c *draw.Canvas)
type TimelinesPlotter ¶
type TimelinesPlotter struct { Timelines Timelines MinSeconds float64 MaxSeconds float64 Padding float64 }
TimelinesPlotter plots a stack of Timelines in the specified time range
func NewTimelinesPlotter ¶
func NewTimelinesPlotter(timelines Timelines, minSeconds float64, maxSeconds float64) *TimelinesPlotter
func (*TimelinesPlotter) DataRange ¶
func (t *TimelinesPlotter) DataRange() (xmin, xmax, ymin, ymax float64)
type UniformBoard ¶
type UniformBoard struct { Board Horizontal int Vertical int Padding float64 // contains filtered or unexported fields }
UniformBoard is a Board that can automatically place a grid of subplots
func NewCorrelationBoard ¶
func NewCorrelationBoard(timelines Timelines) (*UniformBoard, error)
Constructs and returns a correlation board between all possible entry pairs
func NewEntryPairsHistogramBoard ¶
func NewEntryPairsHistogramBoard(timelines Timelines) *UniformBoard
func NewGroupedCorrelationBoard ¶
func NewGroupedCorrelationBoard(group *GroupedTimelines) (*UniformBoard, error)
Constructs and returns a correlation board between all possible entry pairs
func NewGroupedTimelineEntryPairsHistogramBoard ¶
func NewGroupedTimelineEntryPairsHistogramBoard(group *GroupedTimelines) *UniformBoard
func NewUniformBoard ¶
func NewUniformBoard(horizontal int, vertical int, padding float64) *UniformBoard
NewUniformBoard returns a UniformBoard ready to accept horizontalxvertical subplots
func (*UniformBoard) AddNextSubPlot ¶
func (b *UniformBoard) AddNextSubPlot(plot *plot.Plot)
AddNextSubPlot populates the next available subplot in the UniformBoard with the passed-in plot
func (*UniformBoard) AddSubPlotAt ¶
AddSubPlotAt adds the passed in plotinum subplot to the UniformBoard. The subplot is ith subplot across, and the jth plot up.