MATLAB: Create plot handle without rendering it.

graphics handlesplotvisible

I was wondering if there were a way to create a plot handle without actually displaying the plot or its figure window until a later time of my choosing. I know I can do the following:
h=plot(1:5,'Visible','off');
However, even with Visible set to off, a figure window is still prematurely created.

Best Answer

H = figure("Visible",false); HH = plot(1:5);