我尝试在极轴上绘制线
\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 处添加此线的点。因此,如果我尝试设置另一种样式标记选项,标记样式不会改变。 如何解决这个问题呢?