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. 繪製陰影的UITableViewCell
- 4. 手動繪製使用CoreGraphics的陰影?
- 5. 使用CoreGraphics繪製內部陰影
- 6. 用半透明視圖繪製陰影
- 7. 使用CSS3盒子陰影的三面一個像素陰影
- 8. 應用陰影
- 9. OpenGL ES 2D陰影的陰影
- 10. 陰影質量(陰影痤瘡)
- 11. 剪輯後無法繪製陰影
- 12. 繪製Matlab中陰影線的偏差
- 13. 在UIImage上繪製邊框和陰影
- 14. CSS繪製形狀與陰影
- 15. UIView的陰影繪製錯誤
- 16. R:在陰謀使用陰影填充
- 17. 三個js陰影
- 18. UIView的陰影使用BezierPath大量抵消了陰影
- 19. 如何設置一個盒子陰影的div元素的所有方面,左陰影,右陰影,頂部陰影,底部陰影?
- 20. 文字陰影
- 21. CoreGraphics的陰影?
- 22. CSS3陰影
- 23. CSS陰影DIV
- 24. Android內陰影
- 25. Framer.js陰影
- 26. 沒有陰影
- 27. 陰影DOM
- 28. 沒有陰影
- 29. 圖像陰影
- 30. XNA陰影?