36

This is courtesy of my friend Ariel: And its evolution and variations:


30

A more playful proposal It's a pity TikZ does not have a mascot!


19

Here is what I think about your wonderful contribution :) \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \node[font=\Huge\bfseries] {\textbackslash\hspace{-1ex} \includegraphics[height=19pt,trim=0 150 0 0]{matlablogo};}; \end{tikzpicture} \end{document} Matlab Logo is taken from here under the impression that it is CC ...


14

No idea if this could be done "natively" with asymptote, pstricks or TikZ, or even by calculating all the data in an external program and then plotting it with pgfplots. I went for doing everything in python and simply including the resulting image. This adapts the python code written by Alex J. DeCaria, taken from the ipython notebook linked on this page. ...


12

Version 1 I tried something like this in MATLAB: surf(membrane), view(-52,30), axis off Plus my favorite package (thank you @Nico): matlab2tikz(['C:\...\logo.tex']) Put this line to add the text in the logo file (tikZ): \path (9,5) node[left,scale=6,rotate=15]{\LaTeX}; Included it in a file with all the necessary preambules \usepackage{tikz} \...


11

Updated According to @Jake's comment, adding the key [align=left] will allow one to type multiple lines in the legend (I guess this is the same for entering multi-line texts in a TikZ node): \addlegendentry[align=left]{ $\text{R}_\text{Darcy,pwr}=[1.26 \times 10^{10},\; 3.76\times 10^9]$ \\ $\text{(1/m)MAE}=1.14\times 10^{-2} \text{ (g/min)}$ } A ...


10

With regard to scaling plots, there are a few options. Is there anything else you want to do? Option 1 - Setting width and height When using matlab2tikz you can specify the width and height of figures: matlab2tikz('nameoffile.tex','width','8cm','height','4cm'); Note that, if I remember correctly, this will set the size of just the axis. Hence, the total ...


10

pgfplots expects a different input format, namely a table of the form X Y Z . . . . . . . . . in which the matrix data is serialized into a long stream. It resembles matlab's matrix(:) syntax. Consequently, you can export you data by means of data = [ X(:) Y(:) Z(:) ] save -ascii P.dat data % save P.dat data -ASCII size(Z) data = -1.00000 4.00000 ...


9

You could use a scatter plot with square markers for this. This requires a bit of work to scale the axis and markers so they join exactly, but this can be tucked away in a style. Then you can simply say \begin{tikzpicture} \begin{axis}[ width=8cm, matrix plot, colorbar ] \addplot table [meta=funceval] { ... }; \end{axis} \...


8

Here's a simple logo: It can be easily altered to fit a horizontal format or to have a dark background.


8

This may also serve as a starting point for something fancier - I'm no designer and my creativity is not great in the graphical department.


8

You can use the execute at begin axis key to sneak another \pgfplotsset command into the axis options. This \pgfplotsset command will be executed after the other axis options have been set: \documentclass[12pt,a4paper,tikz]{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{tikz,pgfplots,grffile,amsmath} \...


7

I haven't tested it with \include statement but you can localize your axis options and let them executed after the axis options. EDIT: Oh and of course your \input is going to replace the tikzpictures below. \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.8} \begin{document} { \pgfplotsset{execute at begin axis={\pgfplotsset{width=...


7

You can specify the marker size globally by putting \tikzset{mark size=5} (or some other value) somewhere before your tikzpicture.


7

This happens because matlab2tikz seems to hardcode the tick labels. Ordinarily, I would recommend to remove the xtick and xticklabels keys, but since this is the output of an external program, it's preferable to use an approach that doesn't require altering the code directly. To remove the axis multiplier, use \pgfplotsset{scaled ticks = false} somewhere ...


7

You can not use only two points (in your case (0,0) (7,0)) since you are using six bars. For example, I'm using here \addplot[fill=green,draw=black] plot coordinates{ (1,8) (2,5) (3,7) (4,2) (5,3) (6,7) }; \addlegendentry{Green color}; \addplot[fill=red,solid, %forget plot ] coordinates{ (1,2) (2,2) (3,5) (4,1) (5,3) (6,4) }; \addlegendentry{Red color}; ...


7

To flip your graphic, you can pass options to the plot graphics/node to scale the node vertically by -1 and change its default anchor point: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.9} \begin{document} \begin{tikzpicture} \begin{axis} \addplot[plot graphics/node/.append style={yscale=-1,anchor=north west}] graphics[...


7

The answers: You need to pass the forget plot option to \addplot to exclude the background plots from the legend; I also commented out the option area style and shifted the legend a little (to prevent it from overlapping the plots) using at={(0.9,0.95) in the legend style key. There might be another options using some coordinate systems, axis cs, or axis ...


7

pgfplots sets up a bunch of styles that determine how axis labels, titles, ticklabels etc. look. These can be redefined by adding options to the optional argument of the axis environment. For example, to change the size of the legend to \tiny, add legend style={font=\tiny}. matlab2tikz allows you to append options to the axis with the extraAxisOptions ...


7

Add \pgfplotsset{compat=newest} to the preamble. \documentclass[tikz,margin=.5cm]{standalone} \usepackage[utf8]{inputenc} \usepackage{pgfplots} \usepackage[T1]{fontenc} \usepackage{siunitx} \usetikzlibrary{arrows,calc} \pgfplotsset{compat=newest} %<<<<<<< \begin{document} \begin{tikzpicture} \begin{axis}[% width=3.767in, height=...


7

All \begin{axis} environments you have seem to end abruptly with an unclosed option. The last option below is ticklabel style={font=\footnotesize ] clearly the style option is never closed but instead LaTeX finds the entire list of keys is concluded while it's still processing one of them. Hopefully if you add a closing brace, replacing ticklabel style={...


6

You could work around the problem by providing the x, y and z unit vectors explicitly yourself: \documentclass[tikz]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepackage{amsmath} \begin{document} \begin{tikzpicture} \begin{axis}[% area legend, xlabel={Ost [m]}, xmajorgrids, ylabel={Nord [m]}, x={(0.0001cm,0.00005cm)}, y={(-0.0001cm,0....


6

The key piece of information, I believe, is that you load the hyperref package before the varioref package. A solution to the problems you report consists of (a) loading varioref before hyperref and (b) loading cleveref as well, after hyperref. The reason this works is that when cleveref is loaded, it checks if varioref is loaded and, if the answer is yes, ...


6

You can use xtick=data, xticklabels={T0,T1B,T2B,T2A,T1A,T3A,T4A,T3B,T4B}, The code (I commented out the lines width=\pdfw and height=\pdfh since the values were not provided in the code): \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[% view={0}{90}, %width=\pdfw, %height=\pdfh, scale only axis, xmin=1,...


6

No offense but both look pretty strange. But if you want to replicate the orientation and scales you can use <x,y,z> post scale key. \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{axis}[% grid=major, xmin=0, xmax=124.6, ymin=-5.16, ymax=5.16, zmin=-0.50849813416709, ...


6

One option: the inset is saved in a box and then placed at the desired position using a \node and the axis coordinate system for the main plot (See Section 4.17.1 Accessing Axis Coordinates in Graphical Elements): \documentclass{article} \usepackage{pgfplots} \newsavebox\mybox \begin{document} % the box is filled with the inset \savebox\mybox{% \begin{...


6

pgfplots has a graphics plot type to handle this scenario. We can export a bare plot (no axis, labels, or anything) as a vector format, then have pgfplots lay an axis atop it. This way, there is no loss of quality (we used vector export from MATLAB), we have access to all of pgfplots' features, but we've offloaded the heavy-duty computation/memory usage ...


5

The problem is that final \node command: Your axis only goes from x=0.5 to 1.5, but the node is positioned at x=216.8, which is waaaay over to the right. Also, maybe you're better served with using the boxplot functionality that's been introduced in PGFPlots recently (see Boxplots in LaTeX)


5

With the new features matrix plot and matrix plot* available in PGFPlots v1.13 Jake's answer can be simplified to the following code. You can find the description in section 4.6.12 on page 164 of the manual. \documentclass[border=2mm]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ width=8cm, ...


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