I need to make a picture that should look like
I saw a similar question here but the red function line appears neither when I use --shell-escape
nor when I use --enable-write18
. I use TeXstudio, by the way. TikZ and pgf packages are installed.
UPD: Code which I used
\documentclass[]{scrartcl}
\usepackage{tkz-fct}
\begin{document}
\begin{tikzpicture}[scale=1.25]
\tkzInit[xmax=8,ymax=4]
\tkzAxeXY[ticks=false]
\tkzGrid
\tkzFct[color = red, domain =0.125:8]{4./x}
\tkzDrawRiemannSumInf[fill=green!60,
opacity=.2,
color=green,
line width=1pt,
interval=1:8,
number=7]
\foreach \x/\t in {1.5/$a_1$,2.5/$a_2$,3.5/$a_3$,7.5/$a_7$}
\node[green!50!black] at (\x,{4/(\x+1)-0.25}){\t};
\end{tikzpicture}
\end{document}
And maybe there are some good graphic editors to draw such things by hand?
--shell-escape
to usetikz
& friends. – jub0bs Apr 24 '13 at 12:31tkz
solution that uses gnuplot, and therefore needsshell-escape
– Jake Apr 24 '13 at 12:33