heatmap

package
v1.0.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2021 License: BSD-3-Clause, MIT Imports: 12 Imported by: 0

Documentation

Overview

Package heatmap exports images in png or svg format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownsampleData

func DownsampleData(data *Heatmap, matrices *types.Matrices, downsampleTreshold int)

DownsampleData for a heatmap.

func Export

func Export(filename string, settings Settings)

Export image.

Types

type Heatmap

type Heatmap struct {
	Annotations types.Annotations
	ColumnDB    []string
	ColumnOrder []int
	Markers     types.Markers
	RowDB       []frontend.Row
	RowOrder    []int
	Settings    types.Settings
}

Heatmap data for exporting image.

func ReadJSON

func ReadJSON(filename string) *Heatmap

ReadJSON heatmap information for exporting as image.

type Settings

type Settings struct {
	DownsampleThreshold int
	FontPath            string
	Format              string
}

Settings for heatmap export.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL