Quantcast
Channel: Dimension too large after exporting box plot with matlab2tikz - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 2

Dimension too large after exporting box plot with matlab2tikz

$
0
0

When exporting a box plot with matlab2tikz I get no errors, but when running pdflatex I get a "dimension too large" error. This only happens with box plots. Still the box plot shows up as it should, except only x labels ('A' , 'B' etc) are missing.

Plots in Matlab are generated by

matlab2tikz( 'myfile.tex', 'height', '\figureheight', 'width', '\figurewidth' );

Plots in LaTeX are generated by

\newlength\figureheight \newlength\figurewidth \setlength\figureheight{5cm} \setlength\figurewidth{5cm}\input{myfile.tex}

Any ideas?

Here is the content of myfile.tex

\begin{tikzpicture}\begin{axis}[%width=\figurewidth,height=\figureheight,unbounded coords=jump,clip=false,scale only axis,xmin=0.5,xmax=1.5,xtick={\empty},ymin=-0.906787341211142,ymax=1.91353502249058]\addplot [color=black,dashed,forget plot]table[row sep=crcr]{1 1.22705846866506\\1 1.78533855141323\\};\addplot [color=black,dashed,forget plot]table[row sep=crcr]{1 -0.778590870133791\\1 -0.1615124881432\\};\addplot [color=black,solid,forget plot]table[row sep=crcr]{0.9625 1.78533855141323\\1.0375 1.78533855141323\\};\addplot [color=black,solid,forget plot]table[row sep=crcr]{0.9625 -0.778590870133791\\1.0375 -0.778590870133791\\};\addplot [color=blue,solid,forget plot]table[row sep=crcr]{0.925 -0.1615124881432\\0.925 1.22705846866506\\1.075 1.22705846866506\\1.075 -0.1615124881432\\0.925 -0.1615124881432\\};\addplot [color=red,solid,forget plot]table[row sep=crcr]{0.925 0.232038283285484\\1.075 0.232038283285484\\};\node[above, inner sep=0mm, text=black]at (axis cs:216.829133858268, -13.9889763779528, 0) {1};\end{axis}\end{tikzpicture}%

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images