erplab icon indicating copy to clipboard operation
erplab copied to clipboard

No color .eps output.

Open gphaden opened this issue 2 years ago • 1 comments

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
  1. 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

gphaden avatar Apr 02 '22 23:04 gphaden

.eps is a black-white format in matlab. You need epsc - EPSColor, it's a separate option, even though file extension is the same.

Allexxann avatar May 10 '23 11:05 Allexxann