没有名为X的形状

时间:2019-06-15 07:37:42

标签: plot latex tikz

我正在尝试使用pgfplots创建tikz图片,该图片具有tkz-euclide包的角度。但是,经过很多困难之后,我无法编译乳胶文档。

我尝试更改路径内的参数。似乎没有任何作用。移除\ tkzMarkAnglesize = 0.5cm,mark = |;行将允许代码工作,但是角度显然不会显示。

\begin{figure}[ht]
\begin{center}
    \tikzset{every picture/.style={xscale=1,yscale=1}}
\begin{tikzpicture}
    \begin{axis}[
    domain=0:8,
    xmin=0, xmax=8,
    ymin=0, ymax=8,
    samples=400,
    yticklabels={,,},
    xticklabels={,,},
    ticks=none,
    axis y line=center,
    axis x line=middle,
    xscale=2, yscale=1.5,
    clip=false,
    ]
    \addplot+[thick, smooth, mark=none, color=black, width=0.1in] plot coordinates
    {(0,3) (8,7)};
    \addplot+[thick, smooth, mark=none, color=black, width=0.1in] plot coordinates
    {(6,6) (8,6)};
    \path
        (8,7)node(A){}
        (6,6)node(B){}
        (8,6)node(C){};
    \tkzMarkAngle[size=0.5cm,mark=|](A,B,C);    
    \node[label={180:{$\theta_H$}},circle,fill,inner sep=0pt] at (axis cs:0,3) {};
    \addplot+[thick, smooth, mark=none, color=black, width=0.1in] plot coordinates
    {(0,1) (8,3)};
    \node[label={180:{$\theta_L$}},circle,fill,inner sep=0pt] at (axis cs:0,1) {};
    \end{axis}
\end{tikzpicture}
\end{center}
\end{figure}

错误:未知的形状为B

这是一个最小的工作示例(应要求提供):

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{pgfplots}
\pgfplotsset{compat=1.11}
\usepackage{tkz-euclide}
\usepackage{tikz}
\usetkzobj{all}

\begin{document}
\begin{figure}[ht]
\begin{center}
\tikzset{every picture/.style={xscale=1,yscale=1}}
\begin{tikzpicture}
    \begin{axis}[
    domain=0:8,
    xmin=0, xmax=8,
    ymin=0, ymax=8,
    samples=400,
    yticklabels={,,},
    xticklabels={,,},
    ticks=none,
    axis y line=center,
    axis x line=middle,
    xscale=2, yscale=1.5,
    clip=false,
    ]
    \addplot+[thick, smooth, mark=none, color=black, width=0.1in] plot coordinates {(0,3) (8,7)};
    \addplot+[thick, smooth, mark=none, color=black, width=0.1in] plot coordinates {(6,6) (8,6)};
    \path
        (8,7)node(A){}
        (6,6)node(B){}
        (8,6)node(C){};
    \node[label={180:{$\theta_H$}},circle,fill,inner sep=0pt] at (axis cs:0,3) {};
    \addplot+[thick, smooth, mark=none, color=black, width=0.1in] plot coordinates {(0,1) (8,3)};
    \node[label={180:{$\theta_L$}},circle,fill,inner sep=0pt] at (axis cs:0,1) {};
    \end{axis}
\end{tikzpicture}
\end{center}
\end{figure}
\end{document}

0 个答案:

没有答案