# Tag Info

9

You can place labels parallel to the plot lines by adding node [pos=0.6, sloped, anchor=south] {<Text>}; at the end of the \addplot lines: Note that I reduced the number of samples from 1000 to 30. For a function that's as smooth as this one, you don't need that many sample points. \documentclass[convert]{standalone} \usepackage{pgfplots} ...

8

The problem is that you're not sampling the point at x=0, because the default domain runs form -5 to +5 and you're using an even number of samples. By setting samples=101 and/or setting domain=0:5, you'll at least get a connected plot. But the sampling isn't going to be dense enough where things are interesting (near x=0), so you'll still need to use a large ...

4

See the answers here: Change color of plots in pgfplots globally You can set the style globally using pgfplotsset, in your case something like \pgfplotsset{every axis plot post/.append style={blue,mark=none}}. Example with blue curves and black axes: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{every axis plot post/.append ...

4

Before showing the results, some notes This answer will only cover your first graph. Reason being that the code for it is already long and it took a while. Also the first graph is incomplete. The blue and green arrows are missing, and I'm not sure if you wanted them to follow the intersection between the marker and the sin waves while being constrained in ...

3

A circle will appear a circle independent of the axis used since it is't entered as data or a table of values. The problem with your code is merely of specifying the unit of length of the radius. Is it 1pt, 1in, 1cm? you should specify. Here is what I get if I specify 1cm, for example: \documentclass[tikz,10pt]{standalone} \usepackage[utf8]{inputenc} ...

2

Following the answer given by @LaRiFaRi, groupplots works for me (code at ShareLatex): \documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{pgfplots.groupplots} \pgfplotsset{compat=1.3} \begin{document} \begin{tikzpicture} \pgfplotsset{footnotesize,samples=10} \begin{groupplot}[group style = {group size = 3 by 1, horizontal sep = ...

2

For plots, use pgfplots; its great customization capabilities allow to easily adapt the style to the one you want: The code: \documentclass[border=10pt, tikz]{standalone} \usepackage{pgfplots} \usetikzlibrary{arrows} \tikzset{ >=stealth', punkt/.style={ rectangle, rounded corners, draw=black, very thick, ...

2

Percusse's comment provided the key word "oblique projection". Some googeling lead me to the following solution: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{axis}[ x={(-0.3535cm,-0.3535cm)}, y={(1cm,0.0cm)}, z={(0cm,1cm)}, ...

2

You can format axis, and show a coordinate of your choice: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \pagestyle{empty} \begin{document} \begin{tikzpicture}[font=\tiny] \begin{axis}[ axis x line = middle, axis y line = middle, axis z line = middle, view={150}{35}, domain ...

1

You have to reverse the order of the plots to get the right curves at the legend entries. \addlegendentry adds a legend entry for each plot, plot after plot (so, in your example for the two dashed curves). I also added some code so that the code compiles... \documentclass{standalone} \usepackage{pgfplots} \usepackage{pgfplotstable} \begin{document} ...

1

Fill, then draw: \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture}[scale=0.5] \fill[green] (0,15) to [out=0,in=90] (15,0) to [out=90,in=180] (30,15) to [out=180,in=270] (15,30) to [out=270,in=0] (0,15); \draw[very thick,name path=A] (0,15) to [out=0,in=270] (15,30); \draw[very ...

1

This seems to work. I removed the dateplot stuff, and instead of x=date for the \addplot, I used x expr=\coordindex. This uses the index of the coordinate instead, i.e. 0,1,2,..., which gives constant distance between ticks. xtick=data places the ticks at the right place. You do need to load pgfplotstable to use x expr=\coordindex. As a sidenote, ...

1

Here is a solution with pstricks in answer to a similar quesion: \documentclass[x11names]{standalone}% \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \pagestyle{empty} \usepackage{pstricks-add, pst-3dplot} \usepackage{auto-pst-pdf} \def\localbasis{\psline{<->}(1,0)(0,0)(0,1)} \def\\M{6*\pstPI1} \begin{document} \footnotesize \psset{xPlotpoints ...

1

So i kind of solved the problem with some help form the pgfplots manual pages 470-2, and this other question. I have this in my preamble: \usepackage{tikz,pgfplots,pgfplotstable} \pgfplotsset{compat=1.9} %\usetikzlibrary{external} \usepgfplotslibrary{external} \tikzexternalize \tikzset{external/system call={lualatex -shell-escape -halt-on-error -interact ...

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