我试图在被角度扫出的这个圆的楔形阴影中着色:
代码如下:
select object_id,
change_time,
old_value,
new_value ,
DENSE_RANK() over ( partition by object_id order by change_time) "seq_no"
from (
;with cte
as (
select * from #tmpfup
union
select distinct fup.object_id, datee.change_time, datee.old_value,
datee.new_value
from #tmpfup fup, #tmpdate datee
)
select * from cte
)
我尝试使用\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\usetikzlibrary{quotes,angles}
\begin{document}
\begin{figure}[ht]
\centering
\begin{tikzpicture}[scale=1,line width=1pt]
\begin{axis}[
color= white,
xmin=-1.5,
xmax=1.5,
ymin=-1.5,
ymax=1.5,
axis equal image,
axis lines=middle,
xticklabels={},
yticklabels={},
font=\scriptsize,
ticks=none,
xlabel = $x(t)$,
ylabel = $y(t)$,
inner axis line style={stealth-stealth}
]
\draw[black] (0,0) circle [radius=1];
\draw[<->]
(1,0) coordinate (a) %node[right] {}
-- (0,0) coordinate (b) %node[left] {b}
-- (0.3,0.953939) coordinate (c) %node[above right] {c}
pic[draw=orange, <->, angle eccentricity=1.2, angle radius=1cm]
{angle=a--b--c};
\draw[black, ->] coordinate (a) (0,0) -- (1,0);
\draw[black, ->] coordinate (b) (0,0) -- (0.3,0.953939);
\node[black, left, scale=1] at (0.3, 0.17) {$\theta$};
\end{axis}
\end{tikzpicture}
\end{figure}
\end{document}
,但是这很令人困惑,我确定必须有一种更有效的方法,例如在原因内定义路径和阴影?
答案 0 :(得分:1)
您可以将 opacity
参数用于工程图该部分的组件:
\begin{tikzpicture}[scale=1,line width=1pt]
\begin{axis}[
color= white,
xmin=-1.5,
xmax=1.5,
ymin=-1.5,
ymax=1.5,
axis equal image,
axis lines=middle,
xticklabels={},
yticklabels={},
font=\scriptsize,
ticks=none,
xlabel = $x(t)$,
ylabel = $y(t)$,
inner axis line style={stealth-stealth}
]
\draw[black] (0,0) circle [radius=1];
\draw[<->,opacity=0.5]
(1,0) coordinate (a) %node[right] {}
-- (0,0) coordinate (b) %node[left] {b}
-- (0.3,0.953939) coordinate (c) %node[above right] {c}
pic[draw=orange, <->, angle eccentricity=1.2, angle radius=1cm]
{angle=a--b--c};
\draw[black, ->, opacity=0.5] coordinate (a) (0,0) -- (1,0);
\draw[black, ->, opacity=0.5] coordinate (b) (0,0) -- (0.3,0.953939);
\node[black, left, scale=1, opacity=0.5] at (0.3, 0.17) {$\theta$};
\end{axis}
\end{tikzpicture}