当我调用plot()函数时,生成的图在浏览器中打开时始终具有固定的大小。我尝试以多种形式将布局参数传递给函数,但它总是抛出“未处理的布局类型”错误。
示例代码:
using Plots
plotly()
data = rand(10)
plot(data, layout = [:autosize=false, :width = 500, :height = 500])
plot(data, layout = [autosize=false, width = 500, height = 500])
plot(data, layout = ["autosize"=>false, "width" => 500, "height" => 500])
Run Code Online (Sandbox Code Playgroud)
有谁知道如何正确传递这个布局参数?