Allison pointed out that RBSP/ECT/REPT data, which is sliced once and then drawn as a stack of lines, will often revert to just showing a "renderer cannot plot" error bubble. I was able to see this with the REPT data, here is a script which shows the same problem:
reset()
from org.autoplot import RenderType
plot( 'vap+inline:randn(300,30,20)/10+outerProduct(ones(300),linspace(PI/2,PI,30))+sin(linspace(0,PI,300))' )
waitUntilIdle()
dom.controller.getPlotElement().setRenderType(RenderType.series)
waitUntilIdle()
plot= dom.controller.copyPlotAndPlotElements(dom.plots[0],None,False,False)
(See https://github.com/autoplot/dev/blob/master/bugs/2021/20210917/demoBug20210917_03.jy) After running the script, note that the bottom plot, which should be a copy of the top plot, shows the error message.
Also run this script, and then change the plot style to "fill_to_zero".
Diff:
I've found that https://github.com/autoplot/dev/blob/master/bugs/2021/20210917/demoBug20210917_04.jy
works for v2020a_8 but not v2020a_9.
Last edit: Jeremy Faden 2021-09-20
I narrowed the change to be between 20200704a and 20200708a.
I'm sure it's r24949:
See also https://sourceforge.net/p/autoplot/bugs/2270/
See also https://sourceforge.net/p/autoplot/bugs/2305/. That bug was introduced at the same time.
axisDimensionsChange of PlotElementController would request a change when going from a stack of series to a stack of fillToZero. The change at r24949 was to make it always reset, which I expected would be better since it always reset. However later that year I backed out the change (early November). It seems like it should always reset or only reset when necessary. I've made the method public static so it can be studied more easily.
And now copyPlotAndPlotElements needs to be a simpler code, because the components would be added once automatically and once because they were already there. This is fixed now as well.