Page 1 of 1

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

\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},
    extra x ticks={-3,-2,0,1.75},
    extra x tick style={
        xticklabel style={xshift=-5pt, yshift=12pt},
        tick label style={font=\tiny},
        xticklabel pos=upper
    },
		%xtick=\empty,ytick=\empty,
    xmin=-4.5,xmax=5,
		ymin=-2,ymax=4,
		unbounded coords=jump,
    samples=200,
    xticklabel style={font=\tiny},
    yticklabel style={font=\tiny},
    ]
    \coordinate (A) at (-3,-1);
    \coordinate (B) at (-1.5,2);
    \coordinate (C) at (-2,0);
    \coordinate (D) at (0,3);
    \coordinate (E) at (3,0);
    \coordinate (F) at (2.2,3);
    \coordinate (G) at (1,0.5);
    \coordinate (H) at (1.75,1.5);
    \coordinate (K) at (1.92,2);
    \draw[blue, looseness=0.5] (A) to[out=25,in=-110] (C) to[out=55,in=-110] (B) to[out=68,in=180] (D) to[out=0, in=135] (E) -- (3.2,-0.2) node[above right, yshift=-0.5cm] {$C_g$};

    \draw[red, looseness=0.5] (A) to[out=80,in=180] (B) to[out=0,in=180] (G) to[out=0,in=-110] (F) -- (2.3,3.2) node[above left] {$C_f$};

    \foreach \point in {A,B,C,D,E,F,G,H,K} {
    \edef\temp{\noexpand\fill (\point) circle (1pt);}
    \temp
  }
      \draw[blue, dashed] (A) -- (0,-1);
      \draw[blue, dashed] (B) -- (K);
      \draw[green, dashed] (D) -- (F);
      \draw[blue, dashed] (0,0.5) -- (G);

      \draw[blue, dashed] (A) -- (-3,0);
      \draw[blue, dashed] (1,0) -- (G);
      \draw[blue, dashed] (1.75,0) -- (H)--(0,1.5);
      \draw[red, dashed] (B) -- (-1.5,0);
      \draw[red, dashed] (2.2,0) -- (F);
     \end{axis}
\end{tikzpicture}
\end{document}




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

Class: Figures
Views:  300




0 Comments, Latest

No comments yet. Be the first to Comment

Most viewed courses: