Tag Info

Hot answers tagged

7

Your data seems to be arranged in set of rectangular patches. So the key patch type=rectangle. Use opacity options to avoid (for the most part) the superposition problem (with axis) produced by current limitations of pgfplots. (For absolute control over the 3D object and lighs use Asymptote instead, in any case pgfplots will get you 99% there and it will be ...


5

If all you need is a matrix, you can do this: strrep(strrep(mat2str(A),",","&"),";","\\\\\n")(2:end-1) where A is your matrix. That will give you the body of your matrix, without the \begin{matrix} and \end{matrix} strcat("\\begin{bmatrix}\n",strrep(strrep(mat2str(A),",","&"),";","\\\\\n")(2:end-1),"\n\\end{bmatrix}\n") will generate the whole ...


4

There are several possible interpretations of your question. The first is that you want to draw a surface representing the "outer shell" (convex hull? interpolation by a smooth surface?) of some data points given in no particular order. Mathematical algorithms for producing such surfaces virtually always produce triangulated surfaces. Since you insist on a ...


4

Your MWE uses commands from the graphicx and color packages but does not load them so produces errors about undefined commands. So it needs to be \documentclass[]{report} \usepackage{graphicx,color} \begin{document} \input{comparison.tex} % Uses commands from the graphicx and color packages \end{document} Then line 7 of the included file is ...


3

But it is closed source. Is there something Open Source or should I attempt to try and accumulate people to write it? If you aren't completely wedded to Octave, you can use Sage to do this. sage: M = matrix([[2,3],[3,2]]) sage: latex(M) \left(\begin{array}{rr} 2 & 3 \\ 3 & 2 \end{array}\right) sage: a = integral(x^2,x) sage: latex(a) ...


3

GNU Octave can export to PDF+supplementary TeX file, EPS+TeX, PGF and also TikZ, as described in its official manual. However, it has the following problems: Exported PDF has too much blank space around. Exported PGF/TikZ code sometimes has to be modified to work Exported PGF/TikZ code output looks bad when zoomed in. I recommend using the matlabtikz ...


2

You can include the whole thing an then use the options to \includegraphics to clip to a specified rectangle


2

Thanks alfC, with your help and a little further research I was able to achieve a solution I am pretty ok with: \documentclass{scrreprt} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage{pgfplots} ...


1

When using \input{...} as a way of including figures made by Octave or gnuplot you may rescale the image using \resizebox{x}{y}{\input{...}}, where x and y are the required image dimensions in whatever units that you wish. The usage you would like to have requires keeping proportions constant, which would mean typing ...


1

Okay: It appears that this is an issue with the way .tikz files are produced by gnuplot/octave. In GNUPLOT 4.4 it uses \gpcolor{gp lt color border}, \gpcolor{\gprgbr{r}{g}{b}} and others In GNUPLOT 4.6 is uses \gpcolor{color= gp lt color border}, \gpcolor{rgb color={r,g,b}} etc. Essentially, I was using two different systems Ubuntu 12.04 with octave ...



Only top voted, non community-wiki answers of a minimum length are eligible