

Matlab 2014a vector graphics output how to#
I think you can still run the jsx script from Windows, but you need to figure out how to feed it to Adobe Illustrator from the commandline. IntelliJ IDEA or Eclipse.įor Windows Users - the steps done in the bash script need to be replaced with something else, something that talks to Adobe Illustrator. jsx script I suggest using any IDE other than the default ExtendScript Toolkit App, e.g. (Adobe Illustrator) emulating actions described in jsx script The line of code under the commented line that reads (around line 21): You will need to edit the shell_script_illustrator.sh file. fix_matlab_pdfs_jsx_plus_aiįix_Matlab2014b_pdf_output.m fixes Matlab pdf output issues that exist for all Matlab versions 2014b and later. fix_matlab_eps.py is faster, and uses free software, but the resulting file still has fractured graphics after I run it.

jsx script solution works better in creating the final vector graphics that I want, but it's very slow, and sometimes Illustrator and ExtendScript Toolkit need to be restarted.
Matlab 2014a vector graphics output for mac#
I packaged it with my own for convenience and I've added install instructions for Mac users and a couple other useful matlab functions. The second is a fix created by Sven Baars with a python script that uses Inkscape. Illustrator -> File -> Scripts -> Other Scripts -> Select fixMatlabPDFOutput.jsx. You can still use it on a Windows machine (I think), but you will need to open the vector graphics file in Illustrator manually, then select the script to run through Illustrators dropdown menu: As it is, this will only work on Macs if you want to do everything from Matlab. They both unite objects of the same color that Matlab fractures when exporting. Contained within are two separate workarounds for fixing Matlab vector graphics output (eps, pdf).
