11-25-2022 03:03 AM - edited 11-25-2022 03:27 AM
Hello, hello,
I currently have a minor error that leaves me wondering. It's "Function SetPlotAttributeAnsi: (return value == -46 [0xffffffd2]). The attribute passed is not valid" on the last line (the ATTR_VISIBLE), which is currently 0. No other line has errors and the plot displays fine in the C graph. Any idea ?
Plot = PlotXY(P, C, RsB, CopyI, NbRs, VAL_DOUBLE, VAL_DOUBLE,
PlotStyle, PointStyle, LineStyle, 1, Color);
SetPlotAttribute(P, C, Plot, ATTR_PLOT_LG_TEXT, "7 - Filtered %s");
SetPlotAttribute(P, C, Plot, ATTR_PLOT_SNAPPABLE, 0);
SetPlotAttribute(P, C, Plot, ATTR_VISIBLE, Visible);
I should add that the program is single thread and there are 4 plots on that graph, none of which have this problem.
Solved! Go to Solution.
11-25-2022 05:30 PM
The corrrect attribute to use is ATTR_TRACE_VISIBLE (1234) instead of ATTR_VISIBLE (530).
11-28-2022 03:27 AM
Woah, talk about missing the obvious. I had several other SetPlotAttributes with the proper attribute in my code, and I kept comparing the code to no avail...
Grazie...