When exporting a figure to Adobe Illustrator format created using the SCATTER function, MATLAB returns errors and does not create the file, or creates it incompletely.
Reproduction steps:
X=[.25 .75];Y=[.25 .75];C=[1 0 0; 0 0 1];scatterHandle=scatter(X,Y,25,C);print -dill myScatter
I get the following error:
??? Error using ==> print Error using ==> print Error using ==> graphics\private\render Error using ==> hardcopy
Adobe Illustrator driver does not print in Z-Buffer or OpengGL mode.
If the attempt is made to set to the 'painters' renderer using:
set(gcf, 'renderer', 'painters')
The following warning is returned and the circles no longer appear on the SCATTER plot:
Warning: RGB color data not yet supported in Painter's mode.
Best Answer