习题来源于网络,仅做整理。

参看网站:

https://matplotlib.org/tutorials/index.html

https://blog.csdn.net/james_154_best/article/details/80460676

1.

2.

3.

 

debug:

1.only size-1 arrays can be converted to Python scalars

The error “only length-1 arrays can be converted to Python scalars” is raised when the function expects a single value but you pass an array instead.

(当函数期望得到单值时却传递了数组https://stackoverflow.com/questions/36680402/typeerror-only-length-1-arrays-can-be-converted-to-python-scalars-while-plot-sh/36680545

版权声明:本文为Jacon-hunt原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/Jacon-hunt/p/11353083.html