Menu

#2390 switch style type from stack of lines with rank 3 data, results in "renderer cannot plot"

nextrelease
open-fixed
nobody
None
5
2021-09-26
2021-09-18
No

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.

Discussion

  • Jeremy Faden

    Jeremy Faden - 2021-09-18

    Also run this script, and then change the plot style to "fill_to_zero".

     
  • Jeremy Faden

    Jeremy Faden - 2021-09-20
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -13,4 +13,4 @@
    
     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.
    +(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.
    
     
  • Jeremy Faden

    Jeremy Faden - 2021-09-20

    I narrowed the change to be between 20200704a and 20200708a.

     
  • Jeremy Faden

    Jeremy Faden - 2021-09-20

    I'm sure it's r24949:

    r24949 | jbfaden | 2020-07-08 15:15:45 -0500 (Wed, 08 Jul 2020) | 1 line
    
    always reset the renderType.  There's no benefit to trying to recycle the old renderer, or at least it seems so.
    
     
  • Jeremy Faden

    Jeremy Faden - 2021-09-20
     
  • Jeremy Faden

    Jeremy Faden - 2021-09-21

    See also https://sourceforge.net/p/autoplot/bugs/2305/. That bug was introduced at the same time.

     
  • Jeremy Faden

    Jeremy Faden - 2021-09-21

    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.

     
  • Jeremy Faden

    Jeremy Faden - 2021-09-21

    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.

     
  • Jeremy Faden

    Jeremy Faden - 2021-09-26
    • status: open --> open-fixed
     
MongoDB Logo MongoDB