I am trying now for a while to add an angle to my triangle, but unfortunately I receive the following error: "Package PGF Math Error: Unknown function `axis' (in 'axis cs')." My Latex code looks like the following:
\documentclass[12pt]{article}
\usepackage[german]{babel}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fancyhdr}
\usepackage{blindtext}
\usepackage{listofsymbols}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{xcolor}
\usepackage{longtable}
\usepackage{stmaryrd}
\usepackage{graphicx}
\usepackage{pgfplots}
\usepackage{tkz-euclide}
\usepackage{calc}
\begin{center}
\begin{tikzpicture}
\begin{axis}[
axis lines=center,
xtick={-1, 1},
ytick={-1, 1},
xlabel={$x$},
ylabel={$y$},
xlabel style={below right},
ylabel style={above left},
xmin=-1.5,
xmax=1.5,
ymin=-1.5,
ymax=1.5,
axis equal image]
\draw[color=teal] (axis cs:0,0) -- (axis cs:0.71,0) -- (axis cs:0.71,0.71) -- cycle;
\draw[fill=lightgray, thick] (axis cs: 0,0) -- (axis cs: 0,0) arc (axis cs: 0.71,0) node at (axis cs: 0.71,0.71) {$\alpha$} -- cycle;
\draw(axis cs: 0,0) circle [radius=100];
\end{axis}
\end{tikzpicture}
\end{center}~\\
The error appears while trying to draw a lightgray arc. Thanks for helping me out, JackboyPlay.
\documentclass{...}
, the required\usepackage
's,\begin{document}
, and\end{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.