webdiagram

../_images/sphx_glr_webdiagram.svg
\documentclass[]{standalone}
 
\usepackage[]{graphicx}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\tikzset{>=latex}
\usetikzlibrary{arrows,arrows.meta}
\usepackage{steinmetz}
\newcommand*{\equal}{=}

\usepackage{tikz-3dplot}
\usetikzlibrary{decorations.markings}

\tikzset{->-/.style={decoration={
  markings,
  mark=at position #1 with {\arrow{>}}},postaction={decorate}}}

\begin{document}
 \begin{tikzpicture}
  \begin{axis}[
    width=7cm,height=7cm,
    xmin=-2.5,xmax=2.5,
    ymin=-2.5,ymax=2.5,
    grid=both,
    %grid style={line width=.1pt, draw=gray!10},
    major grid style={line width=.3pt,draw=gray!70},
    axis lines=middle,
    %minor tick num=5,
    xtick = {-sqrt(3),0,sqrt(3)},
    ytick = {-sqrt(3),0,sqrt(3)},
    xticklabels={$-\sqrt{3}$, $0$, $\sqrt{3}$},    
    yticklabels={$-\sqrt{3}$, $0$, $\sqrt{3}$},    
    enlargelimits={abs=0.2},
    ticklabel style={font=\tiny},
    xlabel={$x$},
    ylabel={$y$},
    xlabel style={font=\tiny, at={(ticklabel* cs:1)},anchor=north},
    ylabel style={font=\tiny, at={(ticklabel* cs:1)},anchor=west},
    ]
    \draw (axis cs:0,0) node[above=4pt,left=0pt] {\tiny$0$};
    \addplot[domain=-2.5:2.5,samples=100] {(x^3+x)/4};
    \addplot[domain=-2.5:2.5,samples=10] {x};
    \draw[thick,->-=0.5] (1.5,1.21875) -- (1.21875,1.21875) -- (1.21875,0.757256) -- 
    (0.757256,0.757256) -- (0.757256,0.297873) -- (0.297873,0.297873) -- 
    (0.297873,0.0810758);
    \draw[thick,->-=0.15] (2,2.5) -- (2.5,2.5) -- (2.5,4.53125);
    \draw[thick,->-=0.5] (-1.5,-1.21875) -- (-1.21875,-1.21875) -- (-1.21875,-0.757256) -- 
(-0.757256,-0.757256) -- (-0.757256,-0.297873) -- 
(-0.297873,-0.297873) -- (-0.297873,-0.0810758);
    \draw[thick,->-=0.15] (-2,-2.5) -- (-2.5,-2.5) -- (-2.5,-4.53125);
  \end{axis}
 \end{tikzpicture} 

\end{document}