直方图改进或以 3D 形式绘制直方图

直方图改进或以 3D 形式绘制直方图

我创建了这个直方图!我想问:

  1. 我可以进一步改进它吗,因为在一个“标准化频率,41”我有两个“频率偏移值,4 和 11”?
  2. 是否可以绘制 3D 直方图,以便轻松查看重叠的条形图?谢谢
\begin{document}

\begin{tikzpicture}
  \centering
  \begin{axis}[
        ybar,
    height=10cm,
    width=13cm,
    enlarge y limits=false,
    axis lines*=left,
    ymin=0,
    ymax=100,
     legend style={at={(0.5,-0.2)},
        anchor=north,legend columns=-1},
        ylabel={Frequency shift \%},
        xlabel={Normalized frequency \%},
        symbolic x coords={41,41,54,54,57,59,59,67,67,67,67, 73, 73,79,79,81,81,90,90,99,99,100,100},
     xtick=data,
        nodes near coords,
    every node near coord/.append style={
        anchor=mid west,
        rotate=70
    }
    ]
    \addplot coordinates {(41,11) (41,4) (54,22) (54,5) (57,2) (59,5) (59,1) (67,40) (67,6) (67,8) (67,1) (73,4) (73,1) (79,64) (79,6) (81,16) (81,1) (90,93) (90,6) (99,55) (99,1) (100,100) (100,3)};
    \legend{Crack 3.2mm};
  \end{axis}
\end{tikzpicture}
\end{document}

相关内容