Skip to content

Commit

Permalink
examples: update plot example
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Jun 25, 2024
1 parent 18bf177 commit d88ad85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/plot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ func loop() {
g.Plot("Plot 基本图表").AxisLimits(0, 100, -1.2, 1.2, g.ConditionOnce).XTicks(lineTicks, false).Plots(
g.Line("Plot Line 线图", linedata),
g.Line("Plot Line2", linedata2),
g.SwitchPlotAxes(g.AxisX1, g.AxisY2),
g.Scatter("Scatter 散点图", scatterdata),
),
).SetYAxisLabel(g.AxisY2, "secondary axis"),
g.Plot("Plot Time Axe 时间线").AxisLimits(timeDataMin, timeDataMax, 0, 1, g.ConditionOnce).Plots(
g.LineXY("Time Line 时间线", timeDataX, timeDataY),
g.ScatterXY("Time Scatter 时间散点图", timeDataX, timeScatterY),
Expand Down

0 comments on commit d88ad85

Please sign in to comment.