On Mon Oct 11, 2021 at 11:04 CET,
lazar...@gmail.com wrote:
> how to make each Tick marked?
you need to mark it as a "major" tick:
-
https://pkg.go.dev/gonum.org/v1/plot#Tick.IsMinor
basically, creating a plot.Tick value with a non-empty 'Label' field.
I guess that if you have an explicit list of desired ticks (ie: points
in time) you want to render, an option is to use a combination of
plot.ConstantTicks and plot.TimeTicks:
-
https://pkg.go.dev/gonum.org/v1/plot#ConstantTicks
ie: use the ConstantTicks as the Ticker field of plot.TimeTicks, where
ConstantTicks is the list of points in time you want to render.
timeTicks := plot.TimeTicks{
Ticker: plot.ConstantTicks([]plot.Tick{
timePt1, timePt2, ...
}),
Format: "some format",
}
hope that helps,
-s