有谁知道如何在图表外的散景中携带图例?我唯一可以做的操作就是选择一个位置:
top_right, top_left, bottom_left or bottom_right
Run Code Online (Sandbox Code Playgroud)
使用:
legend()[0].orientation = "bottom_left"
Run Code Online (Sandbox Code Playgroud)
当我尝试不同的时候,我收到错误信息:
ValueError: invalid value for orientation: 'outside'; allowed values are top_right, top_left, bottom_left or bottom_right
Run Code Online (Sandbox Code Playgroud)