我有一套数据并希望绘制在特定区域。我使用 tikz 绘制该区域,当我想将数据添加为该区域中的轮廓图时,我没有得到结果。我如何在特定区域中绘制数据文件?这是我的代码
\documentclass[12pt]{standalone}
\usepackage[x11names]{xcolor}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.15}
\begin{document}
\Large
\begin{tikzpicture}
\edef\val{0}
\foreach \a in {0, 1,...,60}
\draw[Azure4] (\a:9.7) -- (\a:10);
\foreach \a in {0, 10,...,60}
\draw[Azure4] (\a:0) -- (\a:10);
\foreach \r in {0, 2, ...,10}
\draw [Azure4] (\r,0) arc (0:60:\r);
\draw [black, ultra thick] (0,0) -- (10,0) arc (0:60:10) -- (0,0);
\draw (0: 10.6) node {$0$};
\draw (30: 10.6) node {$\frac{\pi}{6}$};
\draw (60: 10.6) node {$\frac{\pi}{3}$};
\addplot3[contour gnuplot={number=9,
labels=false},thick] {data.dat};
\end{tikzpicture}
\end{document}