Hot answers tagged

4

Try instead min, max values defined function domain like follows: \documentclass[border=3mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \begin{document} \begin{tikzpicture} \begin{axis}[ width=8cm, domain=0:4, samples=200, xlabel={$t$}, ylabel={$x(t), y(t)$}, grid] \addplot[red,smooth] {(1 + ...


3

You can generate a mesh or surf plot. \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ view={35}{15}, axis lines = center, width=15cm,height=15cm, xtick={-2,-1,0,1,2},ytick={-2,-1,0,1,2},ztick={0,1,2}, minor tick={-12,-11,...,12}, xmin= - 2.3 ,xmax=2.3, ymin=-2.3,ymax=2.3,zmin=-0.3,zmax=2.3, ] \addplot3[ mesh, red, ...


2

In parameters of your axes you need to add area style and each plot end width \closedcycle: \documentclass{article} \usepackage{pgfplots} \usepgfplotslibrary{dateplot} \pgfplotsset{compat=1.12} \usetikzlibrary{fillbetween} \usepackage{filecontents} \begin{filecontents*}{data.csv} date,backlog,wip,finished 2015-01-06,54,27,3 2015-01-13,55,27,5 ...


2

I guess it is not necessary to use PGFPLOTS whenever there are data to plot. My approach is divided into two parts. First, I use PGFPLOTSTABLE to read the table. This package is good at reading tables. It should be able to read your CSV file. Second is about how to draw. In comments (and in general) we would suggest PGFPLOTS because it has built-in ...


2

I tried to create a first draft of a diagramm with your requirements. I used the packages pgfplots and tikz. \begin{tikzpicture} \begin{axis}[ybar stacked, axis y line*=left] %first axis \addplot coordinates %blue {(0,8)(1,7)(2,10)}; \addplot coordinates %red {(0,20) (1,65) (2,88)}; ...


2

You can draw almost any arbitrary functional expression in the coordinate expressions \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[domain=1:10,no marks,xlabel=$V$,ylabel=$A$,grid=both] \addplot ({(4*pi*(x)^3)/3},{4 *pi * (x)^2}); \end{axis} \end{tikzpicture} \end{document}



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