Back to the main page.

Bug 776 - examine the plot2svg plugin for matlab

Reported 2011-06-23 10:05:00 +0200
Modified 2011-11-11 11:19:52 +0100
Product: FieldTrip
Component: documentation
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P1 normal
Assigned to: Robert Oostenveld
Depends on:
See also:

Robert Oostenveld - 2011-06-23 10:05:10 +0200

at the eeglab workshop Arno mentioned to use renderer=painters for complex figures and the plot2svn toolbox for transparency and 3d axes.

Eelke Spaak - 2011-09-29 16:00:49 +0200

The plot2svg toolbox works: it generates .svg files from matlab plots. However, it requires that plots are created as 'v6' figures, a matlab option which has long been deprecated and will be removed in the future. Furthermore, although the export works, it does not offer any advantages to exporting as .eps or .pdf, I think, and opening the generated file in Illustrator takes a long time (in the case of a 151-channel multiplot-TFR). I am not quite sure what the intention of this bug was. Integrating the toolbox into fieldtrip is probably a bad idea. If people want to generate svg figures directly from matlab, they can always download the toolbox separately.

Eelke Spaak - 2011-09-30 11:51:01 +0200

PS: I just found out that plot2svg generates a .png file for each pseudocolorplot in a matlab figure. So, a multiplotTFR results in numChannels separate .png files. Not very elegant, I would say :)

Robert Oostenveld - 2011-10-06 14:26:54 +0200

The page states "Figures from MATLAB should preferably be exported in the PNG format." Is that then still the preferred guideline?

Eelke Spaak - 2011-10-24 08:57:10 +0200

I would say yes, since we will not want to edit exported Matlab graphics directly. I have updated the documentation guidelines on figures to reflect this, and added a description of how people should proceed if they really want matlab figures saved as SVG, in the case where a vector-editable file is desired. I'll leave it to you to close the bug, or of course reassign it to me if I can still be of any use :)

Robert Oostenveld - 2011-11-11 11:19:52 +0100

I closed all bugs that were recently resolved.