![在 PGF 图中添加标记并指向极轴图](https://linux22.com/image/470134/%E5%9C%A8%20PGF%20%E5%9B%BE%E4%B8%AD%E6%B7%BB%E5%8A%A0%E6%A0%87%E8%AE%B0%E5%B9%B6%E6%8C%87%E5%90%91%E6%9E%81%E8%BD%B4%E5%9B%BE.png)
我尝试在极轴上绘制线
\documentclass[11pt,a4paper,report]{article}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage{tikz}
\usepackage{amsmath}
\usepackage{multicol}
\setlength{\columnsep}{20pt}
\setlength{\columnseprule}{1pt}
\usepackage{pgfplots}
\usetikzlibrary {calc, patterns, arrows.meta,graphs,shapes.misc}
\usetikzlibrary{arrows.meta}
\usetikzlibrary {datavisualization.formats.functions, datavisualization.polar}
\begin{document}
\begin{center}
\begin{figure}[h]
\centering
\tikz \datavisualization [
scientific polar axes={0 to pi, clean},
all axes=grid,
style sheet=vary hue,
legend=below
]
[visualize as smooth line=sin,
sin={label in legend={text=$3 \sin{\varphi}$}}]
data [format=function] {
var angle : interval [0:2*pi];
func radius = 3*sin(\value{angle}r);
}
[visualize as scatter, style={mark options={scale=1, fill=blue, draw - blue, mark = *, mark size=10pt}}]
data [format=function] {
var angle : interval [0:4*pi];
func radius = 3*sin(\value{angle}r);
};
\end{figure}
\end{center}
\end{document}
但我应该在 pi/4 和 3pi/4 处添加此线的点。因此,如果我尝试设置另一种样式标记选项,标记样式不会改变。 如何解决这个问题呢?