But every time a check box is ticked or unticked a new figure is produced. I was expecting the original figure to adjust but maybe I, as an amateur, just don’t understand how it works? I can only upload one image but in words when I check the “vic” box a new chart is drawn below the original figure with “nsw” and “vic” series
If I recall correctly, for a “live” connection in the notebook, you need to add a few more things, which can be found in the docs, I forgot the exact section.
Thanks. I have looked in the docs, and there is a bit to read, but I am clearly missing something. Maybe I need to put the “live” connection into a browser window.
Problem solved. Thanks for the assistance. The answer was found in the docs and was a matter of returning “fig” from the function rather than the ax sub object. The working code is: