julia绘图包plots如何控制输出图片的长宽大小以及如何设置axis equal

# code
  • 长宽大小: size=(w,h)
  • axis equal: aspect_ratio= (:none (default), :equal)
# Plot output size.jl

using Plots
pyplot()

xs = [string("x", i) for i = 1:10]
ys = [string("y", i) for i = 1:4]
z = float((1:4) * reshape(1:10, 1, :))
heatmap(xs, ys, z, aspect_ratio=:equal, size=(300,100))

png("Plot output size.png")

image

ref:

感谢。:grinning: