erplab
erplab copied to clipboard
No color .eps output.
Description
When saving figure with colors in .eps format via 'pdf' button on figure toolbar the resulting .eps file is black and white. (see fix at end)
#### Steps to Reproduce
- save figure as .eps
#### Expected behavior: Color figure can be saved in .eps format in color.
#### Actual behavior:
Color figure can not be saved in .eps format in color. Resulting .eps file is black and white. [What actually happened]
#### Versions
OS version | Windows 7 Enterprise SP1 |
Matlab version | MATLAB 2018a and older |
EEGLAB version | 2022.0 and older |
ERPLAB version | 8.30 and older |
#### Fix in /functions/erplab_print2file.m after line 100 add new line fformat=[fformat 'c']; %this makes the print() driver option '-depsc' in stead of '-deps' which is needed for color output
.eps is a black-white format in matlab. You need epsc - EPSColor, it's a separate option, even though file extension is the same.