I am using a graph to display values that could either be displayed in mL/min or L/min units.
Currently when the units are changed I can reset the Y axis to go from, say, 0 to 20 L/min, to 0 to 2000 mL/min. But obviously the values plotted on the graph from the L/min need to be rescaled (x1000) to display properly after changing the range.
Is there any efficient way to do this? So far I am storing the values separately and then clearing the graph and readding them after scaling, but this is obviously wasteful and inefficient.