
我正在用 LaTeX 寫我的第二篇論文,我的大部分問題都可以透過此頁面上的許多文章得到解答。首先非常感謝您!
但仍然存在一個問題:我有一個等高線圖:
\documentclass[fontsize=11pt, paper=a4, headinclude, twoside=false, parskip=half, pagesize=auto, headings=normal, numbers=noenddot, open=right, toc=listof, toc=bibliography]{scrreprt}
\usepackage{siunitx}
\usepackage{pgfplots}
\usepgfplotslibrary{external}
\tikzexternalize
\pgfplotsset{compat=1.9,
xlabel near ticks,
ylabel near ticks,
/pgf/number format/.cd,
use comma,
1000 sep={\,}}
\begin{document}
\begin{figure}\centering\begin{tikzpicture}
\begin{axis}[
small,
height=0.4\textwidth,
width=0.4\textwidth,
domain=-1.414:1.414,
enlargelimits=0.033,
tick align=outside,
tickpos=left,
minor tick num=4,
grid=major,
xlabel=x-Achse,
ylabel=y-Achse,
view={0}{90},]
\addplot3[contour gnuplot={number=14, label distance={30mm}},thick]
{4742.16677745346-62.1338969789625*x+128.778340852979*0+1289.68038315857*y-14.32275*x*0-19.156499999999*x*y-23.728*0*y+168.504260966127*x^2-83.3735819705029*0^2-24.3633946025252*y^2};
\end{axis}
\end{tikzpicture}\caption{Höhenliniendiagramm}\end{figure}
\end{document}
pdf 看起來像這樣:
我想將變數的名稱加入等值線圖中的標籤。在一條輪廓線上應寫 b=6000,而不是只寫 6000。線路上的其他標籤應保持不變。
我已經搜索過此頁面,但我發現的只是為輪廓線製作自己的標籤的建議。我希望有一種更簡單的方法來做到這一點。我認為這一定是可能的,因為這種風格在我在書中看到的圖表中被大量使用。