Skip to content

Instantly share code, notes, and snippets.

@mraza007
Created July 23, 2018 22:03
Show Gist options
  • Save mraza007/c6680555db90f8d0d26745fd070dd7d4 to your computer and use it in GitHub Desktop.
Save mraza007/c6680555db90f8d0d26745fd070dd7d4 to your computer and use it in GitHub Desktop.
This is a simple graph that use TeX pgfplots package
\documentclass[]{standalone}
\usepackage{xcolor}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[ytick={0,1,2,3,4,5,6,7,8,9,10},yticklabels={$0$,$1$,$2$,$3$,$4$,$5$,$6$,$7$,$8$,$9$,$10$},ylabel={$KWH$}, xtick={0,1,2,3,4,5,6,7,8,9,10},xticklabels={$0$,$1$,$2$,$3$,$4$,$5$,$6$,$7$,$8$,$9$,$10$},xlabel={$Timer$}]
\addplot[smooth, mark=*] coordinates {(0,0)
(1,6)
(1.5,6)
(2,3)
(3,10)
(4,6)
(5,8)
(6,1)
};
\end{axis}
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment