From 68ab1ad5835cc4809275dd3e5bc6c8ec27de796c Mon Sep 17 00:00:00 2001 From: jose-donato <43375532+jose-donato@users.noreply.github.com> Date: Tue, 9 Sep 2025 16:05:08 +0100 Subject: [PATCH] Refactor basic plot by removing secondary axis Removed secondary axis switching and y-axis label from the basic plot. --- examples/plot/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/plot/main.go b/examples/plot/main.go index 7aff3257..a5d4065f 100644 --- a/examples/plot/main.go +++ b/examples/plot/main.go @@ -32,9 +32,8 @@ 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),