File Exchange

image thumbnail

Boxplot correction for tikz export

version 1.1.0.0 (2.02 KB) by M H
Workaround to export boxplots correctly with matlab2tikz()

0 Downloads

Updated 14 Nov 2014

View License

Workaround for boxplots in combination with matlab2tikz(). As reported,
matlab2tikz fails to export boxplots correctly, mostly due to the quite
'special' implementation of boxplot() itself. The error "dimension too
large" will occur when compiling an automatically exported boxplot in
Latex due to a wrong positioning of the X-Tick-Labels. This short code
provides a solution through erasing the old labels and setting new ones
with correct positions.
Execute this before running matlab2tikz()...

Comments and Ratings (3)

sigur

Thanks! Just in time. - Adapted it to use the 'grouping variables' for boxplot(). May be a useful extension of your script.

Thanks a lot! I was waiting for a solution like this for long!

best regards

Updates

1.1.0.0

-

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: matlab2tikz/matlab2tikz