Prepare graphics engine to produce a new plot. This function should be called at the beginning of all high-level plotting functions.