Page 1 of 1

\documentclass{standalone}
\standaloneconfig{margin=2mm}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usetikzlibrary{patterns}


\begin{document}

\begin{tikzpicture}[scale=1.00]
    \begin{axis}[axis lines=center,
        xlabel={$x$},
        ylabel={$y$},
        ytick={-1,0.5,1,1.5,2,3},
        xtick={-1.5,1,2.2,3},
        xmin=-4.5,xmax=5,
        ymin=-2,ymax=2,
        unbounded coords=jump,
        samples=200,
        xticklabel style={font=\tiny},
        yticklabel style={font=\tiny},
    ]
    \coordinate (A) at (-2,-1);
    \coordinate (B) at (0,-1);
    \coordinate (C) at (2,1);
    \coordinate (D) at (0,1);

    \fill[pattern=north west lines, pattern color=black] (A) -- (B) -- (C) -- (D) -- cycle;
    \draw (A) -- (B) -- (C) -- (D) -- cycle;
    \draw (0,0) circle (0.1cm);

    \end{axis}
\end{tikzpicture}

\end{document}

Leave a comment if you like this content أترك تعليقا إن أعجبك المحتوى

Class: Figures
Views:  234




0 Comments, Latest

No comments yet. Be the first to Comment

Most viewed courses: