Plots

常用属性

属性名作用说明
title标题title = "自定义标题"
titlefontsize标题大小titlefontsize = 10
label图例label= ["图例一" "图例二"],可为空
xlabelX轴xlabel = "自定义x轴名称"
ylabelY轴ylabel = "自定义y轴名称"
xticksX轴刻度xticks = 0:1:10
yticksY轴刻度yticks = 0:10:100
xlimsX轴范围xlims = (0,10)
ylimsY轴范围ylims = (0,100)
guidefontsize轴标签字体大小guidefontsize = 10
grid网格true, false, :x, :y, :z
framestyle轴框架的样式:axes, :box, :semi, :origin, :zerolines, :grid, :none
linewidth线条粗细lw = 4
linecolor, lc线条颜色lc=[:blue :green]
linestyle, ls线条风格:auto, :solid, :dash, :dot, :dashdot, :dashdotdot
markercolor点标志颜色mc=[:orange :purple]
markershape点标志形状:circle, :rect, :star4-8, :diamond, :hexagon, :cross, :xcross, , , :vline, :hline, :+, :x等
markersize, ms点标志大小ms=5
fillcolor, fc填充颜色fc = :red
background背景颜色bg = :white
background_outside外部背景色bgoutside = :gray90
fontfamily字体样式serif 、sans-serif、 monospace
annotations注释annotations = (-1, 0,"this is #10", :right, 20, "courier")
smooth是否添加回归线默认false

Reference