Switch off graphs when not needed