I have a graph with Y and X axises drawn on the default plot space along with the primary plot, and then I have separate plot spaces for auxiliary plots each with their own Y-axes (the X-axis is the same for all plots).
I'm implementing buttons to switch the auxiliary plots on and off and I would like this to include basically the whole plot space (plot, custom y-axis, and labels of the custom y-axis). There doesn't seem to be any 'hidden' property for the plot space, and all-tough the plot and the axis both have 'hidden' properties, setting these to 'YES' leaves the axis-labels visible.
- What is the best way to completely hide the contents of a plot space without causing more redrawing than necessary?
I guess one way could be to remove the plot space and plot from the graph completely, but this feels unintuitive.
graph.axisSet = nil;
– Ailey