ucdavis / erplab

ERPLAB Toolbox is a free, open-source Matlab package for analyzing ERP data. It is tightly integrated with EEGLAB Toolbox, extending EEGLAB’s capabilities to provide robust, industrial-strength tools for ERP processing, visualization, and analysis. A graphical user interface makes it easy for beginners to learn, and Matlab scripting provides enormous power for intermediate and advanced users.
http://erpinfo.org/erplab
261 stars 74 forks source link

No color .eps output. #155

Open gphaden opened 2 years ago

gphaden commented 2 years ago

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

Allexxann commented 1 year ago

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