Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arafatkatze/glot
/ functions
Functions
36 in github.com/arafatkatze/glot
⨍
Functions
36
◇
Types & classes
7
↓ 12 callers
Method
Cmd
Cmd sends a command to the gnuplot subprocess and returns an error if something bad happened in the gnuplot process. ex: fname := "foo.dat" err :=
core.go:79
↓ 9 callers
Method
plotX
(PointGroup *PointGroup)
glot.go:66
↓ 7 callers
Method
plotXY
(PointGroup *PointGroup)
glot.go:95
↓ 7 callers
Method
plotXYZ
(points *PointGroup)
glot.go:131
↓ 6 callers
Method
Error
()
core.go:46
↓ 5 callers
Function
NewPlot
NewPlot Function makes a new plot with the specified dimensions. Usage dimensions := 3 persist := false debug := false plot, _ := glot.NewPlot(dimens
glot.go:49
↓ 4 callers
Function
min
The default style for a curve
core.go:17
↓ 3 callers
Method
AddPointGroup
AddPointGroup function adds a group of points to a plot. Usage dimensions := 2 persist := false debug := false plot, _ := glot.NewPlot(dimensions, pe
pointgroup.go:29
↓ 3 callers
Method
CheckedCmd
CheckedCmd is a convenience wrapper around Cmd: it will error if the error returned by Cmd isn't nil. ex: fname := "foo.dat" p.CheckedCmd("plot %s"
core.go:97
↓ 3 callers
Method
Close
Close makes sure all resources used by the gnuplot subprocess are reclaimed. This method is typically called when the Plotter instance is not needed a
core.go:114
↓ 2 callers
Method
cleanplot
()
core.go:123
↓ 1 callers
Method
AddFunc3d
AddFunc3d is used to make a 3-d plot of the format z = Function(x,y) Usage dimensions := 3 persist := false debug := false plot, _ := glot.NewPlot(di
function.go:70
↓ 1 callers
Method
RemovePointGroup
RemovePointGroup helps to remove a particular point group from the plot. This way you can remove a pointgroup if it's un-necessary. Usage dimensions
pointgroup.go:284
↓ 1 callers
Method
ResetPlot
ResetPlot is used to reset the whole plot. This removes all the PointGroup's from the plot and makes it new. Usage plot.ResetPlot()
core.go:134
↓ 1 callers
Method
ResetPointGroupStyle
ResetPointGroupStyle helps to reset the style of a particular point group in a plot. Using both AddPointGroup and RemovePointGroup you can add or remo
pointgroup.go:303
↓ 1 callers
Method
SetFormat
SetFormat function is used to save the plot at this point. The plot is dynamic and additional pointgroups can be added and removed and different versi
common.go:199
↓ 1 callers
Method
SetLabels
SetLabels Functions helps to set labels for x, y, z axis simultaneously Usage dimensions := 3 persist := false debug := false plot, _ := glot.NewPlo
common.go:72
↓ 1 callers
Method
SetXLabel
SetXLabel changes the label for the x-axis Usage dimensions := 3 persist := false debug := false plot, _ := glot.NewPlot(dimensions, persist, debug)
common.go:30
↓ 1 callers
Method
SetYLabel
SetYLabel changes the label for the y-axis Usage dimensions := 3 persist := false debug := false plot, _ := glot.NewPlot(dimensions, persist, debug)
common.go:44
↓ 1 callers
Method
SetZLabel
SetZLabel changes the label for the z-axis Usage dimensions := 3 persist := false debug := false plot, _ := glot.NewPlot(dimensions, persist, debug)
common.go:58
↓ 1 callers
Function
newPlotterProc
newPlotterProc function makes the plotterProcess struct
core.go:57
Method
AddFunc2d
AddFunc2d is used to make a 2-d plot of the format y = Function(x) Usage dimensions := 2 persist := false debug := false plot, _ := glot.NewPlot(dime
function.go:33
Method
SavePlot
SavePlot function is used to save the plot at this point. The plot is dynamic and additional pointgroups can be added and removed and different versio
common.go:173
Function
SetCustomPathToGNUPlot
(path string)
core.go:140
Method
SetLogscale
SetLogscale changes the label for the x-axis Usage dimensions := 3 persist := false debug := false plot, _ := glot.NewPlot(dimensions, persist, debug
common.go:128
Method
SetTitle
SetTitle sets the title for the plot Usage dimensions := 3 persist := false debug := false plot, _ := glot.NewPlot(dimensions, persist, debug) plot.A
common.go:16
Method
SetXrange
SetXrange changes the label for the x-axis Usage dimensions := 3 persist := false debug := false plot, _ := glot.NewPlot(dimensions, persist, debug)
common.go:114
Method
SetYrange
SetYrange changes the label for the y-axis Usage dimensions := 3 persist := false debug := false plot, _ := glot.NewPlot(dimensions, persist, debug)
common.go:142
Method
SetZrange
SetZrange changes the label for the z-axis Usage dimensions := 3 persist := false debug := false plot, _ := glot.NewPlot(dimensions, persist, debug)
common.go:156
Function
TestAddFunc3d
(t *testing.T)
function_test.go:7
Function
TestMin
(t *testing.T)
core_test.go:5
Function
TestNewPlot
(t *testing.T)
glot_test.go:5
Function
TestResetPointGroupStyle
(t *testing.T)
pointgroup_test.go:5
Function
TestSetFormat
(t *testing.T)
common_test.go:16
Function
TestSetLabels
(t *testing.T)
common_test.go:5
Function
init
Function to intialize the package and check for GNU plot installation This raises an error if GNU plot is not installed
core.go:26