colorer un angle (arc)

📅 March 16, 2024   |   👁️ Views: 34




Votre navigateur ne supporte pas les PDFs. Voir le Lien de Téléchargement au dessous .

\documentclass{standalone}
\standaloneconfig{border=2mm 2mm 2mm 2mm}
\usepackage{pgfplots}
\usetikzlibrary{calc}

\pgfplotsset{compat=1.18}
\pgfplotsset{
  standard/.style={
    axis line style = thick,
    trig format=deg,
    axis x line=middle,
    axis y line=middle,
    enlarge x limits=0.15,
    enlarge y limits=0.15,
    every axis x label/.style={at={(current axis.right of origin)},anchor=north west},
    every axis y label/.style={at={(current axis.above origin) },anchor=south east},
    %grid=both,
    %grid style=dashed,
    ticklabel style={font=\tiny, fill=white}
  }
}
\begin{document}
\begin{tikzpicture}
      \begin{axis}[standard,
          xtick={-2,-1,...,4},
          ytick={-1,0,...,3},
          yticklabel={$\pgfmathprintnumber{\tick}i$},
          xticklabel={$\pgfmathprintnumber{\tick}$},
          xmin=-2, xmax=4.3,
          ymin=-1, ymax=3.3]

          \node[below left] at (axis cs:0,0){$O$};
          \draw[->,thick, blue] (0,0) -- ++(45:1)
          node[midway, sloped, above , xshift=0.3cm] {$\overrightarrow{OM}$} coordinate (M);
          \fill[orange!20!yellow] (0,0) -- (0.7,0) arc [start angle=0, end angle=45, radius=0.5];
          \draw[->,thick, red] (0.7,0) arc (0:45:0.5);
          \draw[thin, dashed] (M) -- (M|-0,0) node[red, below, font=\tiny] {$x_{M}$};
          \draw[thin, dashed] (M) -- (M-|0,0) node[red, left, font=\tiny] {$y_{ M}$};
          \begin{scriptsize}
              \node[below right] at (0.6,0.4) {\tiny$\theta$};
              \node[above] at (M) {\tiny$M$};
          \end{scriptsize}
      \end{axis}
\end{tikzpicture}
\end{document}



    
\documentclass{standalone}
\standaloneconfig{border=2mm 2mm 2mm 2mm}
\usepackage{pgfplots}
\usetikzlibrary{calc}

\pgfplotsset{compat=1.18}
\pgfplotsset{
  standard/.style={
    axis line style = thick,
    trig format=deg,
    axis x line=middle,
    axis y line=middle,
    enlarge x limits=0.15,
    enlarge y limits=0.15,
    every axis x label/.style={at={(current axis.right of origin)},anchor=north west},
    every axis y label/.style={at={(current axis.above origin) },anchor=south east},
    %grid=both,
    %grid style=dashed,
    ticklabel style={font=\tiny, fill=white}
  }
}
\begin{document}
\begin{tikzpicture}
      \begin{axis}[standard,
          xtick={-2,-1,...,4},
          ytick={-1,0,...,3},
          yticklabel={$\pgfmathprintnumber{\tick}i$},
          xticklabel={$\pgfmathprintnumber{\tick}$},
          xmin=-2, xmax=4.3,
          ymin=-1, ymax=3.3]

          \node[below left] at (axis cs:0,0){$O$};
          \draw[->,thick, blue] (0,0) -- ++(45:1)
          node[midway, sloped, above , xshift=0.3cm] {$\overrightarrow{OM}$} coordinate (M);
          \fill[orange!20!yellow] (0,0) -- (0.7,0) arc [start angle=0, end angle=45, radius=0.5];
          \draw[->,thick, red] (0.7,0) arc (0:45:0.5);
          \draw[thin, dashed] (M) -- (M|-0,0) node[red, below, font=\tiny] {$x_{M}$};
          \draw[thin, dashed] (M) -- (M-|0,0) node[red, left, font=\tiny] {$y_{ M}$};
          \begin{scriptsize}
              \node[below right] at (0.6,0.4) {\tiny$\theta$};
              \node[above] at (M) {\tiny$M$};
          \end{scriptsize}
      \end{axis}
\end{tikzpicture}
\end{document}







Related Courses, Exams, and Exercises


Course PDF:

📥 Download colorer un angle (arc) (PDF)