A longstanding issue with the "active plot" property is that is throws an error if fewer plots currently exist. Conversely, if we wire data containing more plots, the graph automatically adapts to that.
The main problem with this is that the order of operations matters. We need to write the value first, followed by the active plot properties. Many times we already know what kind of plots we want (color, name, etc.), even if one of the plots is only added in a later step or the terminal is written a nanosecond later due to code scheduling. Workarounds mean excessive sequentialization because we need to enforce strict order: (1) write data (2) update plot properties.
The current behavior is annoying, and there are many forum examples where that was the cause of the problem (example).
Two suggestions can address this:
(1) if an active plot property is written, and that plot does not exist yet datawise, it should be created automatically and the node returns without error. (Of course all other missing plots up to that number need to be created too, they can have default properties).
(2) Maybe there should also be a property for "number of plots" than can be written to define the number of plots.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.