Turns on or off the selected state of a plot in the control panel.
val — bool, required
Trueto select the plot,
Falseto deselect the plot.
updateGUI — bool, optional
Whether to send the change in state to the GUI. Calls to this function from user code should not use this parameter lest the GUI state fail to match the plot state;
Falseis only used to receive values from the GUI.
Default value: True