78 reputation
8
bio website
location
age
visits member for 2 years, 2 months
seen Mar 14 '13 at 14:12

May
29
awarded  Popular Question
Jan
30
awarded  Popular Question
Mar
13
comment External graphics and tikz externalize won't work together
@ChristianFeuersänger: There is no issue left, I checked: Before disabling externalization, I forgot to set a name, and in fact, there is an empty figure0 in my pics folder. That is why changing the filename had no effect because there was something there. That is a different story: Shouldn't the externalization routine see when there have been changes to the figure?
Mar
12
comment External graphics and tikz externalize won't work together
@ChristianFeuersänger: I just realized what the problem was: I was trying this in a file that I have used for testing before. So with externalization, it found something and used that instead of my new image. That was the weird stuff I saw. I feel so dumb, I'm sorry... Still, it does not explain why there was no image at all in my main project... Since changing the filename to something random did not have any effect, I don't have a log file either. It's weird, but with \tikzexternalizedisable, my problem is solved. I don't really have to externalize the axes for a pdf image.
Mar
12
comment WYSIWYG LaTeX editor for maths
@Panayiotis: I know, I'm late and you're not a newbie anymore, but I found kile to be very useful as a TeX/Latex editor for Linux. It has a symbols tab where all kinds of things are organized by topic. Also the menu is quite helpful. The whole thing is very much customizable and I really like find it a productive tool.
Mar
12
awarded  Scholar
Mar
12
accepted External graphics and tikz externalize won't work together
Mar
12
comment External graphics and tikz externalize won't work together
That's it! I must have overlooked that, thanks a bunch!
Mar
11
comment External graphics and tikz externalize won't work together
I used a relative path to my figure folder. It works fine for anything else. There is no error message. I simply did not see a picture. I tried changing the filename to some nonexistent file and nothing happened. With \tikzexternaldisable, it works now. Yes, I want the image unscaled. I did not use any width or height options for the axis. I tried includegraphics={width=500pt} (the width of the image) in the plot options as explained in the pgfplots manual, but nothing happens - even if I change it to 10pt...
Mar
11
comment External graphics and tikz externalize won't work together
Thanks, I didn't think of that. But in fact, I am using a full path because my figure is in a different folder than either my externalization folder or my tex file... One thing that seems to work is putting the whole figure into {\tikzexternaldisable }. But I have another problem now: I cannot change the size of the figure anymore! Just using \includegraphics{../pics/testfile} gives me the size I want, but \addplot graphics ... {../pics/testfile} is only half the width and about 90% the height - no matter what I put into includegraphics={} !!!
Mar
11
asked External graphics and tikz externalize won't work together
Dec
12
comment matlab2tikz for surf plots: reducing data?
I'm using exactly your example - except for the documentclass: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[title=$120 \times 120$ Smooth Surface,xlabel=$x$,ylabel=$y$] \addplot3[surf,samples=120,shader=interp,domain=0:1]{sin(deg(8*pi*x))*exp(-20*(y‌​-0.5)^2)+exp(-(x-0.5)^2*30-(y-0.25)^2-(x-0.5)*(y-0.25))}; \end{axis} \end{tikzpicture} \end{document} If there was a syntax problem, pdflatex would have noticed, I guess.
Dec
11
awarded  Commentator
Dec
11
comment matlab2tikz for surf plots: reducing data?
Thanks for this detailed answer. As I wrote above, my version of pgfplots is not too old, it's 1.5.1. I tried your above example (with \documentclass{article}, since standalone does not come with Ubuntu's Tex Live) and I get the memory problem with pdflatex and with lualatex: Runaway argument? sin(deg(8*pi*x))* exp(-20*(y-0.5)^2) + exp(-(x-0.5)^2*30 - (y-0.25)^2\ETC. ! Paragraph ended before \pgfplots@addplotimpl@expression@split@yz was complete . <to be read again> \par l.16 ? So I guess I will go for your third option or stick with pdf-Files produced by Matlab.
Dec
11
comment matlab2tikz for surf plots: reducing data?
@ChristianFeuersänger Thanks for your answer, but it's not pgfplots. I've had version 1.5.1 installed since june. I tried a smaller sample size of my Matlab surf plot and it worked fine with pdflatex. All my 2d plots have worked fine so far. So it really is just a memory issue here. As for lualatex, I have no clue since I have never used it before. I just tried it because in all memory size related posts people said luatalex does not have such a restriction. Maybe there are other issues that I'm not aware of.
Dec
7
comment matlab2tikz for surf plots: reducing data?
@MartinH I read about the graphic feature. You mentioned the viewport, which was actually a good clue because I only tried this once with 2 axes, so it looked really dumb with a 3d plot. But of course it should be possible to have 3 axes, so thanks. But back to the format: scaling sure is bad for the quality of png. That is why I used eps and pdf. As for the amount of work, it is not so bad because I have the conversion command in my MatLab script. I will play around with it and just decide by trial and error, which way comes out better.
Dec
6
comment matlab2tikz for surf plots: reducing data?
@MartinH: Is png better? I thought eps and then pdf had better quality outputs... But I guess I do have to resort to one of them and will not be able to alter stuff in my plot if needed...
Dec
6
comment matlab2tikz for surf plots: reducing data?
@HarishKumar: I forgot to write that I tried that as well. I never found out about the memory issue, though, because I could not export to tikz. In inkscape, the is only the possibility to save as .tex with latex+pstricks and I do not want that.
Dec
6
asked matlab2tikz for surf plots: reducing data?
Oct
17
awarded  Teacher