pyvista.ChartMPL.toggle# ChartMPL.toggle()[source]# Toggle the chart’s visibility. Examples Create a matplotlib chart. >>> import pyvista as pv >>> chart = pv.ChartMPL() >>> plots = chart.figure.axes[0].plot([0, 1, 2], [2, 1, 3]) >>> chart.show() Hide it. >>> chart.toggle() >>> chart.show()