- February 20, 2021 at 1:37 pm
but then they are still plotted:
12 regular values plotted + 8 values with less opacity plotted = 20 values plotted across the x-axis
but I just need to plot the 12 regular values plotted.
- February 20, 2021 at 1:40 pm
You wouldn’t see them at all at opacity=0;
You can also position them offscreen or set their scale to [0,0] with an if/else in those parameters.
Either way: there is no way to delete layers with an expression, that would have to be achieved with a script.
- February 20, 2021 at 1:45 pm
I’m sorry, I didn’t realize you were using a line with nulls…
Don’t know if the original project is still reflecting what your code looks like now, but in that getNullLayers() loop, you can add the condition of i < data.length, to stop adding more nulls to the list.
- February 20, 2021 at 2:54 pm
Log in to reply.