在 adobe 中查看時 Tikz 圖案渲染不正確

在 adobe 中查看時 Tikz 圖案渲染不正確

當在 Tex studio 中查看我的輸出時,45 度線圖案呈現如下所示: 在此輸入影像描述

在 Adob​​e 或 Sumatra 中查看時,我得到以下資訊: 在此輸入影像描述 縮小並不會使它變得更好,只有放大時才會變得更好極端地關閉線條是否正確渲染。我在任何其他 Tikz 庫上都沒有遇到過這個問題,我對發生的事情感到困惑。其他人也遇到類似的問題,但他們的解決方案不適用於我的情況。

這裡:

\documentclass{standalone}
\usepackage{color}
\usepackage{tikz}
\usetikzlibrary{calc,matrix,arrows,arrows.meta,decorations.pathmorphing,decorations.markings,math,shapes.misc, positioning, shapes.geometric, intersections, quotes, angles, positioning, patterns, patterns.meta}
\usepackage{pgfplots} 
\pgfplotsset{compat=1.9} 
\begin{document}
    \begin{tikzpicture}[declare function = {
        h(\x) = sqrt((2*sin(2*pi*\x/0.02 r))^2);
    },
    ]
    \begin{axis}[
        clip=false,
        title=\large{\textbf{RMS Visualised}},
        title style={yshift=7mm,},
        xlabel={Time (s)},
        ylabel={Voltage (V)},
        axis lines = middle,
        xmin=0, xmax=.021,
        xtick={0,0.01,0.02},
        xticklabel style={
            /pgf/number format/fixed,
            /pgf/number format/precision=2,
        },
        scaled x ticks=false,
        yticklabel=\empty, 
        xticklabel=\empty,
        ytick style={draw=none}, 
        width=0.8\textwidth,
        height=0.4\textwidth,
        scale=1,
        every axis x label/.style={
            at={(ticklabel* cs:1.00)},
            anchor=west, right=1mm,
        },  
        every axis y label/.style={
            at={(ticklabel* cs:1.00)},
            anchor=south, above=1mm,
        },
        samples = 100,
        axis line style = {-{Stealth[scale=1.0]}, thick}, %,
        every axis plot/.append style={thick},
        ]
        \addplot[color=green, domain=0:0.02]{h(\x)} node[above, pos=0.75] {$\sqrt{V^2}$};
        \draw[-, thick, color= violet] (axis cs:0,{2/sqrt(2)}) -- (axis cs:0.02,{2/sqrt(2)}) node[right] {$V_{_{\mathrm{RMS}}}$};
        \fill[pattern color=violet, fill opacity=1, pattern={Lines[angle=45, line width=0.8pt, distance= 2mm]}] (axis cs:0,0) rectangle (axis cs:0.02,{2/sqrt(2)}); 
    \end{axis}
\end{tikzpicture}
\end{document}

相關內容