|
From:
<br...@ph...> - 2006-04-24 14:11:37
|
Daniel Graupner wrote: >> In every latex run I get a Failure: >> gnuplotgeneratedtex:294:Dimension too large. \gplbacktext > I recently identified the problem. > My plot is multiplot, the first one has an yrange from 0 to 14000 the > second from 0 to 5, xrange is the same. That indicates you're abusing multiplot. You should almost certainly have either used the secondary y axis to do both plots in one diagram without multiplot mode set ytics nomirror ; set y2tics plot 'data1' u 1:2 axes x1y1, 'data2' u 1:2 axes x1y2 or you could have re-scaled one of the datasets on-the-fly: plot 'data1' u 1:2, 'data2' u 1:($2/5.0*14000) > I used labels and arrows in the first one, in multiplot they are > drawn in both plots but due to the coordinate difference they do not > show up in plot 2. Whether that's true depends on what you mean by "show up". The gnuplot core does try to draw those things --- in versions up to 4.0, it partly depends on the terminal driver what happens if they're outside the visible range. That set aside, you probably should have use 'graph' or 'screen' coordinates, not data-driven ones, to positions those labels. See "help coordinate". > I just put "unset label" and "unset arrow" before the second plot and > it works. The other error I got was that latex was not able to > determine the size of the eps...fixed this by adding the extension > ".eps" to the filename...strange. Not very strange. LaTeX (or rather the graphicx package, to be precise) does depend on the filename extension to guess what type of file you have, and what to do with it. If the file's called *.eps, LaTeX can peek inside and find the BoundingBox. If it's not *.eps, LaTeX expects to find size information about the image elsewhere. |