How is the BarSpacing option really implemented in Mathematica?

后端 未结 2 1055
花落未央
花落未央 2021-01-05 06:34

I\'m trying to implement a DateListBarChart function that takes dated data and outputs a bar chart with the same placements as DateListPlot. It\'s

2条回答
  •  礼貌的吻别
    2021-01-05 07:06

    You may relieve your complaint about FillingStyle by using CapForm["Butt"].

    list = {0.01, -0.81, 0.12, 0.81, 1.79, 1.1, 0.41, 1., 1.33, 1.08, 
      2.16, 1.13, 1.92, 1.64, 1.31, 1.94, 1.71, 0.91, 2.32, 0.95, 1.29, 
      1.28, 2.97, 4.45, 5.11}
    
    DateListPlot[list, {2000, 8}, 
     PlotStyle -> {AbsolutePointSize[6], Yellow}, Filling -> {1 -> 0}, 
     FillingStyle -> {1 -> {{CapForm["Butt"], AbsoluteThickness[14], 
          Darker[Red, 0.25]}}}, PlotRange -> {0, 6}, ImageSize -> 400]
    

    enter image description here

提交回复
热议问题