# Tag Info

6

beamer has the additional font switch \Tiny that will give you a smaller size than \tiny (if your current font supports this size); if this is not enough, you can use \fontsize{<size>}{<baselineskip>}\selectfont with appropriate values. The code: \documentclass{beamer} \usepackage{etex} \usepackage[frenchb]{babel} \usepackage[T1]{fontenc} ...

6

Should point you in the right direction... \documentclass[tikz, border=5]{standalone} \begin{document} \begin{tikzpicture}[>=stealth, line cap=round] \draw [thick, ->] (0,-2) -- (0, 2) node [midway, sloped, above] {Spatial distribution}; \draw [thick, ->] (0,-2) -- (10,-2) node [midway, below] {Time}; \draw [thick, dotted] plot ...

6

Like this? I filled the circle used straight lines of varying opacity: The code: \documentclass{article} \usepackage{tikz} \begin{document} \def\radius{3cm} \begin{tikzpicture} \foreach \Angle in {0,0.5,...,180} { \draw[draw=red!30,opacity=1-(1/180)*\Angle] (0,0) -- (90+\Angle:\radius); \draw[draw=red!30,opacity=1-(1/180)*(180-\Angle)] (0,0) -- ...

4

Here is a pgfplots approach: \documentclass[tikz,border=10pt]{standalone} \usepackage{pgfplots} \usetikzlibrary{decorations.text} \pgfmathdeclarefunction{gauss}{3}{% \pgfmathparse{1/(#3*sqrt(2*pi))*exp(-((#1-#2)^2)/(2*#3^2))}% } \begin{document} \begin{tikzpicture} \begin{scope}[rotate=-90] \begin{axis}[ domain=-0.5:2.5, xmin=-1, xmax=3, ...

4

The root cause is a bug in pgfplots: apparently, the ticklabel coordinate systems do not work as expected. This morning, I have managed to improve the polar library such that the default for pgfplots 1.13 will directly result in the label placement as in your screenshot. I will also simplify sloped tick labels and add some more fine tuning to it. For the ...

3

You need \begin{tikzpicture} \begin{axis} \addplot table [x=new,y=new2] {\loadedtable}; \addplot table[x=new,y={create col/linear regression={y=new2}}] {\loadedtable}; \end{axis} \end{tikzpicture} The complete example: \documentclass{beamer} \usepackage{etex} \usepackage[frenchb]{babel} \usepackage[T1]{fontenc} \usepackage[utf8x]{inputenc} ...

3

You don't have to plot the 10 columns each in a separate figure, PGFPLOTS can handle more than one \addplot on the same two axes. Here is how you can do it: \begin{tikzpicture} \begin{axis}[<axis specifications>] \addplot[ color=blue, only marks, mark=+, mark size=2.9pt] table[x={xColumn},y={AvgColumn}] {file.csv}; \foreach \column in ...

3

You can go the other way as you can read your data and either use it in tabular code or in plotting \documentclass{article} \usepackage{pgfplotstable} \pgfplotsset{compat=1.12} \begin{document} \pgfplotstableread[col sep=ampersand,row sep=\\,header=false]{ 1 & 3.4 \\ 2 & 6.7 \\ 3 & 8.9 \\ 4 & 12.4 \\ 5 & 7.8 \\ }\mytable ...

3

Use coordinate (..) at (...); instead of node (..) at (...) {};, then the \draw works as expected. Another way is to change to \draw (A.center) -- (B.center) -- (C.center); while using node, then lines are drawn between the centers of the nodes, rather than edge to edge, as is the default. If you've defined a style in the axis options or with \pgfplotsset ...

3

3

You can use visualization depends on={value \thisrow{anchor}\as\myanchor},, every node near coord/.append style={font=\small,anchor=\myanchor} and add a fourth column with anchors. \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ axis lines = middle, enlargelimits = true, xlabel = {Travel ...

2

To cite from the PGFPLOTS manual (Sec 5.6.8 Pitfalls and Limitations, p.390), The first limitation is scalability. The underlying algorithms are relatively inefficient and scale badly if the number of samples is large. Please apply it to a reasonable sample sizes" and plots with a reasonable number of intersections". That means: if it takes too long, ...

2

Just use \textdegree{}C Attention, you need to say \usepackage{textcomp} in your document's preamble.

2

The "slice" you see at the top of the two contour plots are actually colorbars for the two uppermost plots. These are included as you have added colorbar horizontal to the group. Each axis environment inherits these options, meanine every plot in this group will have its own colorbar. To see this clearly you can increase the vertical spacing between the ...

2

Add forget plot to those plots that shouldn't be taken into account for the legend (the first two, in your example). You can use legend style to customize the legend formatting; in your case, you need draw=none to suppress the frame. Using the various coordinate systems provided by pgfplots, you can place elements at any desired location. In the example ...

2

If you want actual numbered captions, you can use \captionof in a node placed below the axis. You can have subfigure numbering if you prefer that, see e.g. http://tex.stackexchange.com/a/250032/586 \documentclass{article} \usepackage{pgfplots} \usepackage{capt-of} \begin{document} \begin{figure} \begin{tikzpicture}[every axis/.style={width=7cm}] ...

2

Another short solution (run with latex --> dvips --> ps2pdf): \documentclass[pstricks,border=10pt]{standalone} \usepackage{pst-eucl,pst-plot} \def\iTheta{120} \def\Radius{5} \def\Pb{4} \begin{document} \begin{pspicture}(-5,-1.5)(6.6,6) \psaxes[ticks=none,labels=none,linecolor=black!40]{<->}(0,0)(-5,-1.5)(6.2,5.5)[$x$,0][$y$,90] ...

2

You can create your own component, here is an example, it might need some tweaking though: You can adjust the width and height using: \ctikzset{bipoles/josephsonjunction/height/.initial=.30} % box height \ctikzset{bipoles/josephsonjunction/width/.initial=.30} % box width ... and the line width using: \pgfsetlinewidth{3\pgfstartlinewidth} The ...

2

Using a native circuitikz symbol known as barrier: \documentclass{article} \usepackage{circuitikz} \begin{document} \begin{figure}[ht] \centering \begin{tikzpicture} \draw (0,0) node[label={[font=\footnotesize]above:a}] {} to[barrier,*-*] (1.732,1) node[label={[font=\footnotesize]above:d}] {}; \draw (0,0) ...

1

Thanks to Gonzalo Medina in this post : plot and fit from pgfplottable, I did manage to do what I wanted. The final code is : \documentclass{beamer} \usepackage{etex} \usepackage[frenchb]{babel} \usepackage[T1]{fontenc} \usepackage[utf8x]{inputenc} \usepackage{pgfplots} \usepackage{pgfplotstable} \usepackage{epstopdf} \usepackage{tikz} ...

1

The issue is due to an incompatibility in the document level javascript code generated by the clickable lib. I resolved and repaired it; the issue will be gone in future versions. The only workaround appears to be decompress the resulting pdf files replace the string super in the argument list of function PGFPlotsClassExtend by something else (for ...

1

You could use trim axis left and trim axis right as options for the tikzpicture and additionally border={45pt 0pt} as option for the standalone class. The first value inside the class option is the space added to the left and the right border of resulting bounding box of the image. It must be large enough to show the y-label but it could be also larger. In ...

1

A PSTricks solution where the drawing is adjusted according to value of \Angle (which is denoted \theta on the drawing): \documentclass{article} \usepackage{pstricks-add} \usepackage{expl3} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n \ExplSyntaxOff %%% Parameter %%% \def\Angle{120} % angle (calculated counterclockwise), measured in degrees, with ...

1

Keeping it fairly simple... \documentclass[tikz,border=5]{standalone} \usetikzlibrary{quotes,angles,arrows.meta,decorations.pathreplacing} \begin{document} \begin{tikzpicture}[>=Latex, line join=round, brace/.style={decorate, decoration={brace, raise=5pt, amplitude=5pt}}] \draw [help lines, <->] (-4,0) -- (4,0) node [at end, right] {$x$}; \draw ...

1

Pass the scale=<factor> option to the axis environment and not to the tikzpicture environment: \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{fillbetween} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{semilogxaxis}[ scale=0.8, xmin=1,xmax=256,grid=both,legend pos=north west, xlabel=Nb. ...

1

As percusse said in the comment above, The issue was that I had \usepackage{Pgfplots} rather then \usepackage{pgfplots}.

1

One option is to use a tabular with two columns of type m{<length>} (requires the array package) with centered content. The first column for the 2x2 array of images and the second column for the colorbar. A little example illustrating this approach (adjust the settings according to your needs): \documentclass{article} \usepackage{graphicx} ...

1

Multiple axes environments are hard to connect, but at least you could use a groupplot by loading the groupplots library. Here is an example: \documentclass{article} \usepackage{pgfplots} \usepgfplotslibrary{groupplots} \pgfplotsset{compat=1.12} \begin{document} \begin{figure}[ht] \centering \begin{tikzpicture} \begin{groupplot}[group style={group size=2 ...

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