MATLAB: Creating a blank canvas in Matlab

blank canvas

I am trying to replicate an experiment that has originally been done in Python, with Matlab. I would like to generate a bunch of circles of different sizes, colors and opacity and overlay them on top of each other inside a blank canvas. I would like to know if that is possible to be done in Matlab and what kind of commands I will need to use. For more details regarding the experiment please check the below link:
Thanks.

Best Answer

In MATLAB a "canvas" is called axes. Within axes can be displayed images or any data plotted. Empty axes are created simply using the axes command:
axes
You can then add/remove your circles inside these axes by using the patch command, or any other plotting command. You can access the current axes handle using gca .
Note that an axes does not exist by itself alone, but is always within a figure.