Documentation
¶
Index ¶
- Constants
- Variables
- func PltMeasurePll(vs ...Plt) (r []vis.Siz)
- func PltRndrPll(vs ...Plt)
- type CndStk
- type CndStkRndrSeg
- type Dpth
- type DpthScp
- type FltAxisX
- type FltAxisY
- type FltsSctr
- func (x *FltsSctr) Draw(img *image.RGBA)
- func (x *FltsSctr) Flts(clr clr.Clr, vs ...*flts.Flts) *FltsSctr
- func (x *FltsSctr) HrzScl(v flt.Flt) Plt
- func (x *FltsSctr) Measure() vis.Siz
- func (x *FltsSctr) PrfLos(prfs, loss *tmes.Tmes, stms ...hst.Stm) *FltsSctr
- func (x *FltsSctr) Rndr()
- func (x *FltsSctr) Scl(v flt.Flt) Plt
- func (x *FltsSctr) Sho() Plt
- func (x *FltsSctr) Siz(w, h unt.Unt) Plt
- func (x *FltsSctr) VrtScl(v flt.Flt) Plt
- type FltsSctrDist
- func (x *FltsSctrDist) Draw(img *image.RGBA)
- func (x *FltsSctrDist) Flts(clr clr.Clr, radius unt.Unt, vs ...*flts.Flts) *FltsSctrDist
- func (x *FltsSctrDist) HrzScl(v flt.Flt) Plt
- func (x *FltsSctrDist) Measure() vis.Siz
- func (x *FltsSctrDist) Rndr()
- func (x *FltsSctrDist) Scl(v flt.Flt) Plt
- func (x *FltsSctrDist) Sho() Plt
- func (x *FltsSctrDist) Siz(w, h unt.Unt) Plt
- func (x *FltsSctrDist) VrtScl(v flt.Flt) Plt
- type FltsSctrDistScp
- type FltsSctrScp
- type Hrz
- type HrzBnd
- type HrzBndRndrSeg
- type HrzLn
- type HrzLnRndrSeg
- type HrzScp
- type Plt
- type PltBse
- func (x *PltBse) Bse() *PltBse
- func (x *PltBse) GifSav(path string)
- func (x *PltBse) GifSavOpn(path string)
- func (x *PltBse) HrzScl(v flt.Flt) Plt
- func (x *PltBse) ImgRndr() (r *image.RGBA)
- func (x *PltBse) PngSav(path string)
- func (x *PltBse) PngSavOpn(path string)
- func (x *PltBse) Scl(v flt.Flt) Plt
- func (x *PltBse) Sho() Plt
- func (x *PltBse) Siz(w, h unt.Unt) Plt
- func (x *PltBse) VrtScl(v flt.Flt) Plt
- type PltDrawSeg
- type PltMeasureSeg
- type PltRndrSeg
- type PltScp
- type Plts
- func (x *Plts) At(idx unt.Unt) Plt
- func (x *Plts) Clr() *Plts
- func (x *Plts) Cnt() unt.Unt
- func (x *Plts) Cpy() *Plts
- func (x *Plts) Del(idx unt.Unt) (r Plt)
- func (x *Plts) Dque() (r Plt)
- func (x *Plts) From(idx unt.Unt) *Plts
- func (x *Plts) Fst() Plt
- func (x *Plts) FstIdx() unt.Unt
- func (x *Plts) In(idx, lim unt.Unt) *Plts
- func (x *Plts) InBnd(b bnd.Bnd) *Plts
- func (x *Plts) Ins(idx unt.Unt, elm Plt) *Plts
- func (x *Plts) Lst() Plt
- func (x *Plts) LstIdx() unt.Unt
- func (x *Plts) Mdl() Plt
- func (x *Plts) MdlIdx() unt.Unt
- func (x *Plts) Mrg(a ...*Plts) *Plts
- func (x *Plts) Ok() bol.Bol
- func (x *Plts) Pop() (r Plt)
- func (x *Plts) Push(a ...Plt) *Plts
- func (x *Plts) Que(vs ...Plt) *Plts
- func (x *Plts) Rand() *Plts
- func (x *Plts) Rev() *Plts
- func (x *Plts) To(lim unt.Unt) *Plts
- func (x *Plts) Upd(idx unt.Unt, elm Plt) *Plts
- type PltsScp
- type Sctr
- type SctrDistItm
- type SctrDistRndrPnt
- type SctrDistRndrSeg
- type SctrRndrPnt
- type SctrRndrSeg
- type SideFltAxisX
- type SideFltAxisY
- type SideTmeAxisX
- type Stm
- func (x *Stm) Cnd(pen pen.Pen, cnds ...hst.Cnd) *Stm
- func (x *Stm) Draw(img *image.RGBA)
- func (x *Stm) HrzBnd(fil clr.Clr, stk pen.Pen, btm, top flt.Flt) *Stm
- func (x *Stm) HrzLn(pen pen.Pen, ys ...flt.Flt) *Stm
- func (x *Stm) HrzScl(v flt.Flt) Plt
- func (x *Stm) HrzSclVal(val tme.Tme) *Stm
- func (x *Stm) Measure() vis.Siz
- func (x *Stm) Rndr()
- func (x *Stm) Scl(v flt.Flt) Plt
- func (x *Stm) Sho() Plt
- func (x *Stm) Siz(w, h unt.Unt) Plt
- func (x *Stm) Stm(pen pen.Pen, stms ...hst.Stm) *Stm
- func (x *Stm) StmBnd(fil clr.Clr, stk pen.Pen, btm, top hst.Stm) *Stm
- func (x *Stm) VrtBnd(fil clr.Clr, stk pen.Pen, lft, rht tme.Tme) *Stm
- func (x *Stm) VrtLn(pen pen.Pen, xs ...tme.Tme) *Stm
- func (x *Stm) VrtScl(v flt.Flt) Plt
- func (x *Stm) VrtSclVal(val flt.Flt) *Stm
- func (x *Stm) X() *TmeAxisX
- func (x *Stm) Y() *FltAxisY
- type StmBnd
- type StmBndMeasureSeg
- type StmBndRndrSeg
- type StmScp
- type StmStk
- type StmStkMeasureSeg
- type StmStkRndrSeg
- type StmStkTrd
- type StmStkTrdMeasureSeg
- type StmStkTrdRndrSeg
- type TmeAxisX
- type TmeFltPltBse
- type Vrt
- type VrtBnd
- type VrtBndRndrSeg
- type VrtLn
- type VrtLnRndrSeg
- type VrtScp
Constants ¶
View Source
const ( TxtInvalidDataRange = "INVALID DATA RANGE" TxtNoData = "NO DATA" )
View Source
const ( AxisTrnc = unt.Unt(4) LenMin = float32(10) )
Variables ¶
View Source
var ( Scl = flt.Flt(1.0) StkWidth = unt.Unt(1) ShpRadius = unt.Unt(10) AxisPad = unt.Unt(10) BarPad = unt.Unt(10) Len = unt.Unt(100) Pad = unt.Unt(10) Mrgn = vis.NewLenXY(2, 2, 2, 2) BakClr = clr.Clr{R: 0x0, G: 0x0, B: 0x0, A: 0xff} BrdrClr = clr.Clr{R: 0x61, G: 0x61, B: 0x61, A: 0xff} BrdrLen = unt.Unt(1) InrvlTxtLen = unt.Unt(50) InrvlTxtClrX = clr.Clr{R: 0x61, G: 0x61, B: 0x61, A: 0xff} InrvlTxtClrY = clr.Clr{R: 0xe0, G: 0xe0, B: 0xe0, A: 0xff} InrvlFnt = roboto.Medium(12) MsgClr = clr.Clr{R: 0x37, G: 0x47, B: 0x4f, A: 0xff} MsgFnt = roboto.Medium(24) TitleClr = clr.Clr{R: 0x9e, G: 0x9e, B: 0x9e, A: 0xff} TitleFnt = roboto.Medium(14) PrfClr = clr.Green500 LosClr = clr.Red500 PrfPen = pen.Green500 LosPen = pen.Red500 OutlierLim = flt.Flt(12.0) )
View Source
var (
Siz = vis.Siz{Width: 2560, Height: 1440}
)
Functions ¶
func PltMeasurePll ¶
func PltRndrPll ¶
func PltRndrPll(vs ...Plt)
Types ¶
type CndStkRndrSeg ¶
func (*CndStkRndrSeg) Act ¶
func (x *CndStkRndrSeg) Act()
type FltAxisX ¶
type FltAxisX struct { Width uint32 // pixel width of values (not including any side length, border or margin) PxlPerVal float32 Min flt.Flt Max flt.Flt Rng flt.Flt Inrvls []flt.Flt Lns []flt.Flt Btm SideFltAxisX }
func NewFltAxisX ¶
func NewFltAxisX() (r *FltAxisX)
func (*FltAxisX) MeasureInrvls ¶
type FltAxisY ¶
type FltAxisY struct { Height uint32 PxlPerVal float32 Min flt.Flt Max flt.Flt Rng flt.Flt EqiDst flt.Flt Inrvls []flt.Flt Lns []flt.Flt Rht SideFltAxisY // contains filtered or unexported fields }
func NewFltAxisY ¶
func NewFltAxisY() (r *FltAxisY)
func (*FltAxisY) MeasureInrvls ¶
type FltsSctr ¶
type FltsSctr struct { PltBse XWidth uint32 Y *FltAxisY Title str.Str Outlier bol.Bol // contains filtered or unexported fields }
func NewFltsSctr ¶
func NewFltsSctr() (r *FltsSctr)
type FltsSctrDist ¶
type FltsSctrDist struct { PltBse XWidth uint32 Y *FltAxisY // contains filtered or unexported fields }
func NewFltsSctrDist ¶
func NewFltsSctrDist() (r *FltsSctrDist)
func (*FltsSctrDist) Draw ¶
func (x *FltsSctrDist) Draw(img *image.RGBA)
func (*FltsSctrDist) Flts ¶
func (x *FltsSctrDist) Flts(clr clr.Clr, radius unt.Unt, vs ...*flts.Flts) *FltsSctrDist
func (*FltsSctrDist) Measure ¶
func (x *FltsSctrDist) Measure() vis.Siz
func (*FltsSctrDist) Rndr ¶
func (x *FltsSctrDist) Rndr()
func (*FltsSctrDist) Sho ¶
func (x *FltsSctrDist) Sho() Plt
type FltsSctrDistScp ¶
type FltsSctrDistScp struct { Idx uint32 Arr []*FltsSctrDist }
type FltsSctrScp ¶
type HrzBndRndrSeg ¶
type HrzBndRndrSeg struct { *HrzBnd // contains filtered or unexported fields }
func (*HrzBndRndrSeg) Act ¶
func (x *HrzBndRndrSeg) Act()
type HrzLnRndrSeg ¶
func (*HrzLnRndrSeg) Act ¶
func (x *HrzLnRndrSeg) Act()
type PltDrawSeg ¶
func (*PltDrawSeg) Act ¶
func (x *PltDrawSeg) Act()
type PltMeasureSeg ¶
func (*PltMeasureSeg) Act ¶
func (x *PltMeasureSeg) Act()
type PltRndrSeg ¶
type PltRndrSeg struct {
Plt Plt
}
func (*PltRndrSeg) Act ¶
func (x *PltRndrSeg) Act()
type SctrDistItm ¶
type SctrDistRndrPnt ¶
type SctrDistRndrPnt struct {
// contains filtered or unexported fields
}
func (*SctrDistRndrPnt) Act ¶
func (x *SctrDistRndrPnt) Act()
type SctrDistRndrSeg ¶
func (*SctrDistRndrSeg) Act ¶
func (x *SctrDistRndrSeg) Act()
type SctrRndrPnt ¶
type SctrRndrPnt struct {
// contains filtered or unexported fields
}
func (*SctrRndrPnt) Act ¶
func (x *SctrRndrPnt) Act()
type SctrRndrSeg ¶
type SctrRndrSeg struct { bnd.Bnd Plt *FltsSctr Sctr *Sctr Pnts []SctrRndrPnt }
func (*SctrRndrSeg) Act ¶
func (x *SctrRndrSeg) Act()
type SideFltAxisX ¶
type SideFltAxisX struct {
Height uint32 // total height of side (does not include border)
}
type SideFltAxisY ¶
type SideFltAxisY struct {
Width uint32 // total width of side (does not include border)
}
FltAxisY struct { Height uint32 // pixel height of values (not including any side length, border or margin) PxlPerVal float32 Min flt.Flt Max flt.Flt Rng flt.Flt Inrvls []flt.Flt Lns []flt.Flt Rht SideFltAxisY }
type SideTmeAxisX ¶
type SideTmeAxisX struct {
Height uint32 // total height of side (does not include border)
}
TmeAxisX struct { Width uint32 // pixel width of values (not including any margin, border or y-axis width) PxlPerVal float32 Min tme.Tme Max tme.Tme Rng tme.Tme Inrvls []tme.Tme Lns []tme.Tme Btm SideTmeAxisX }
type Stm ¶
type Stm struct { TmeFltPltBse Title str.Str // contains filtered or unexported fields }
type StmBndMeasureSeg ¶
type StmBndMeasureSeg struct { *StmBnd // contains filtered or unexported fields }
func (*StmBndMeasureSeg) Act ¶
func (x *StmBndMeasureSeg) Act()
type StmBndRndrSeg ¶
type StmBndRndrSeg struct { *StmBnd // contains filtered or unexported fields }
func (*StmBndRndrSeg) Act ¶
func (x *StmBndRndrSeg) Act()
type StmStkMeasureSeg ¶
func (*StmStkMeasureSeg) Act ¶
func (x *StmStkMeasureSeg) Act()
type StmStkRndrSeg ¶
func (*StmStkRndrSeg) Act ¶
func (x *StmStkRndrSeg) Act()
type StmStkTrdMeasureSeg ¶
func (*StmStkTrdMeasureSeg) Act ¶
func (x *StmStkTrdMeasureSeg) Act()
type StmStkTrdRndrSeg ¶
func (*StmStkTrdRndrSeg) Act ¶
func (x *StmStkTrdRndrSeg) Act()
type TmeAxisX ¶
type TmeAxisX struct { Width uint32 PxlPerVal float32 Min tme.Tme Max tme.Tme Rng tme.Tme Inrvls []tme.Tme Lns []tme.Tme Btm SideTmeAxisX // contains filtered or unexported fields }
func NewTmeAxisX ¶
func NewTmeAxisX() (r *TmeAxisX)
func (*TmeAxisX) MeasureInrvls ¶
type TmeFltPltBse ¶
type TmeFltPltBse struct { PltBse // contains filtered or unexported fields }
type VrtBndRndrSeg ¶
type VrtBndRndrSeg struct { *VrtBnd // contains filtered or unexported fields }
func (*VrtBndRndrSeg) Act ¶
func (x *VrtBndRndrSeg) Act()
type VrtLnRndrSeg ¶
func (*VrtLnRndrSeg) Act ¶
func (x *VrtLnRndrSeg) Act()
Source Files
¶
- cndStk.go
- dpth.gen.go
- dpth.go
- fltAxisX.go
- fltAxisY.gen.go
- fltAxisY.go
- flts.go
- fltsSctr.gen.go
- fltsSctr.go
- fltsSctrDist.gen.go
- fltsSctrDist.go
- hrz.gen.go
- hrz.go
- hrzBnd.go
- hrzLn.go
- plt.gen.go
- plt.go
- pltBse.go
- plts.gen.go
- prcp.go
- prcpSplt.go
- serTrd.go
- stgy.go
- stm.gen.go
- stm.go
- stmBnd.go
- stmSplt.go
- stmStk.go
- stmStkTrd.go
- tmeAxisX.gen.go
- tmeAxisX.go
- vrt.gen.go
- vrt.go
- vrtBnd.go
- vrtLn.go
Click to show internal directories.
Click to hide internal directories.