%% 
%%  Ein Beispiel der DANTE-Edition
%%  
%%  2. Auflage
%% 
%%  Beispiel 15-04-69 auf Seite 809.
%% 
%%  Copyright (C) 2016 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
%% 
\documentclass[]{exaarticle}
\pagestyle{empty}
\setlength\textwidth{145.16928pt}
\usepackage[T1]{fontenc}
%StartShownPreambleCommands
\usepackage{pgfplots}
%StopShownPreambleCommands
\begin{document}
\begin{tikzpicture}[scale=0.5]
\begin{axis}[xmin=-1.5708,xmax=1.6,
  ymin=-10,ymax=10,
  xtick={-1.5708,...,1.5708},
  xticklabels={$-\pi/2$,$\pi/2$},
  axis x line=center,axis y line=center,
  no markers,samples=100]
\addplot gnuplot[domain=
  -0.5*pi+0.003: 0.5*pi-0.003] {tan(x)};
\end{axis}
\end{tikzpicture}
\end{document}
