# Tag Info

5

To see it better I've moved things around a bit. First of all, you are switching to even odd rule for clipping. An example to see how the areas are counted as even and odd \begin{tikzpicture}[even odd rule] \fill[clip] (0,0) circle (2cm) (60:2.5cm) arc (60:-60:2.5) (60:3cm) arc (60:-60:3cm); \end{tikzpicture} Note that this is a PostScript directive and ...

4

The PGF math engine is just not precise enough for these kinds of ranges. If you use gnuplot to do the calculations instead (by replacing expression by gnuplot in your code), you get the correct output: \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}[>=stealth] \begin{axis}[ ...

4

The yticklabel style={anchor=west} was the culprit that was resulting in the labels on the wrong side. Commenting that out yields: Notes: I also changed the fill in ticklabel style={font=\tiny,fill=none} as it was whiting out some of the graph. Code: \documentclass[10pt]{amsart} \usepackage{tikz} ...

3

You have a ytick at 0.1 in the second plot hence the ylabel moves to the right considering that extra space. You can make the position of the ylabel to be fixed by ylabel style={at={(rel axis cs:-0.1,0.5)}} You will find various cs (like ticklabel cs) systems for this in the manual (besides rel axis cs, that I have used) ...

3

Add these extra x ticks={-0.7}, extra x tick style={grid=major, tick label style={ rotate=90,anchor=east}}, extra x tick labels={$-0.7$}, to the axis options. If you don't want beautifications just extra x ticks={-0.7}, extra x tick labels={$-0.7$}, would be enough. Code: \documentclass{article} \usepackage{tikz} ...

3

How about a different labeling skill; use of pin that is not attached to the addplot command. Same for article class -- Remove beamer class and environment and only<2-> Code \documentclass{beamer} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{arrows} \begin{document} \begin{frame} \begin{tikzpicture} \begin{axis}[ width=60mm, ...

3

I can't compile that thing so I'm summoning my crystal ball and guess that you need to add scaled x ticks=false option to the first plot axis options. pgfplots loads TikZ. TikZ loads pgfkeys and xcolor. So you only need the first for those four packages.

2

One way to draw a vertical line with pgfplots is to specify two coordinates: Code: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} \addplot [red, dotted, thick] coordinates {(2,-1) (2,1)} node [right] {$x=2$}; \end{axis} \end{tikzpicture} \end{document}

2

Put xscale=-1 in tikzpicture options. \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.9} \usepgfplotslibrary{ternary} \pgfplotsset{width=9.5cm, height=9.5cm} \begin{document} \begin{tikzpicture}[xscale=-1] %%% <------------------ \begin{ternaryaxis}[ ternary limits relative=false, xlabel= x, ylabel= y, zlabel= z, xmin=0, ...

2

The key clip is a two-dimensional construct which is applied after the 3d projection. It is only applicable to 3d clipping for special cases. What you want is a parameterized triangle. To this end, you have to find a map X=X(s,t) Y=Y(s,t) for 0<= s <=1 and 0<= t <= 1 such that (X,Y) represents your desired triangle. Let us focus on the ...

1

Not sure if I understood your question correctly, but you can provide extra textboxes using the \node command. You can place the node referring to pgfplots internal coordinate system, which is accessible via (axis description cs:x-coordinate,y-coordinate) where the lower left corner of your graph equals to (0,0). After adding the node to your graph the ...

1

One way would be to plot the curve and clip it by \clip (-1, -1) -- (-1, 1) -- (1, -1) -- cycle; \addplot3[surf,domain=-1:1,y domain=-1:1] {x*y}; \documentclass[10pt]{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{axis}[xlabel=$x$,ylabel=$y$,small,view={120}{40}] \clip (-1, -1) -- (-1, 1) -- (1, ...

1

To disable the minor ticks on the y axis, set yminorticks=false: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ ymode=log, yminorticks=false ] \addplot [thick, black] {exp(x)}; \end{axis} \end{tikzpicture} \end{document}

1

You can use scaled x ticks=false, xticklabel style={/pgf/number format/.cd,fixed,precision=2}, to format the xticklabels automatically. Additionally the order of the colors in the color list and the order of the plots could be changed to use the cycle list color list for the plots. \documentclass{scrreprt} \usepackage{pgfplots} ...

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