I understand that you are facing an issue with ‘snapnow’ function mixing figures from different parallel jobs, this could be related to the way it interacts with the underlying display and graphics system.
Using ‘parpool’ in MATLAB can be a helpful approach to manage parallel processing and potentially mitigate issues related to parallel figure rendering. Inside a ‘parfor’ loop or using other parallel constructs, perform your computations in parallel. Ensure that each parallel worker creates and renders figures independently. Use unique figure handles or separate figure names to distinguish figures.
For further information, refer to the documentation link below: