2
A
回答
2
也许这可以让你开始:
using Plots
subplots = 3
time = 250
shade_xlims = [125,140]
data_matrix = Plots.fakedata(time, subplots)
p = plot(data_matrix, layout=(subplots,1), xlabel = "time");
for i in 1:subplots
ymin,ymax = extrema(data_matrix[:,i]) # determine ylims for shade
plot!(p[i], # apply shade to each subplot
shade_xlims, # xlims for shade
[0,0], # dummy y coordinates
fillrange = (ymin,ymax), # apply ylims
fillalpha = 0.5, # set transparency
fillcolor=:gray, # set shade color
label = "") # avoid shade labels
end
p # show the final graph
干杯!
相关问题
- 1. 绘制阴影
- 2. 使用funcanimation绘制阴影
- 3. EXC_BAD_ACCES绘制阴影
- 4. 用阴影色绘制UIlabel
- 5. 围绕NSImageView绘制阴影
- 6. 绘制阴影的UITableViewCell
- 7. 绘制阴影难度
- 8. 手动绘制使用CoreGraphics的阴影?
- 9. 使用CoreGraphics绘制内部阴影
- 10. 用半透明视图绘制阴影
- 11. 阴影
- 12. Three.js控制阴影
- 13. 使用CSS3盒子阴影的三面一个像素阴影
- 14. jQuery获取文本 - 阴影变异(多个阴影)
- 15. 应用阴影
- 16. R阴影的阴影部分
- 17. 弥漫阴影和ambiant阴影
- 18. OpenGL | ES添加阴影/阴影贴图
- 19. 阴影路径和阴影在PNG
- 20. 阴影质量(阴影痤疮)
- 21. OpenGL ES 2D阴影的阴影
- 22. CSS绘制形状与阴影
- 23. 透明形状的绘制阴影
- 24. 剪辑后无法绘制阴影
- 25. 在iOS上绘制阴影矩形
- 26. 绘制大量重叠的2D阴影
- 27. UIView的阴影绘制错误
- 28. UICollectionViewCell绘制阴影和绑定
- 29. 按钮与阴影和绘制
- 30. 在JfreeChart中绘制模糊的阴影?