数据分析-Matplotlib练习题
习题来源于网络,仅做整理。
参看网站:
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)