ITADN

[bug] examples/plot: example crashes (`SwitchPlotAxes`)

#1054Opengucio321 创建于 2026-02-20
bug
G
gucio321commented
### What happend? According to https://github.com/AllenDang/giu/pull/1025, calling ```go g.SwitchPlotAxes(g.AxisX1, g.AxisY2), ``` (under certain circumstances) causes panic: ```console panic: Assertion failed! File: /home/runner/work/cimgui-go/cimgui-go/cwrappers/implot/implot.cpp, Line 2225 Expression: (axis.Enabled) && "Axis is not enabled! Did you forget to call SetupAxis()?" ``` ### Code example see [examples/plot](https://github.com/AllenDang/giu/blob/master/examples/plot/main.go) ### To Reproduce run current example version ### Version a1c68f0177a4b2b4b2d310fe2d1f79338d3291b2 ### OS N/A
0 条评论