【深度学习】plt.xlabel ‘str‘ object is not callable

ref:
https://stackoverflow.com/questions/24120023/strange-error-with-matplotlib-axes-labels
画图的时候手欠写成了:

plt.xlabel = 'x'

实际上应该是

plt.xlabel('x')

因为已经将plt.xlable 赋值为了 ‘x‘ 字符串,所以自然就’str’ object is not callable

相关推荐

  1. 深度学习

    2024-06-06 08:54:07       51 阅读
  2. 深度学习????????

    2024-06-06 08:54:07       53 阅读
  3. 动手学深度学习深度学习计算

    2024-06-06 08:54:07       43 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-06 08:54:07       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-06 08:54:07       100 阅读
  3. 在Django里面运行非项目文件

    2024-06-06 08:54:07       82 阅读
  4. Python语言-面向对象

    2024-06-06 08:54:07       91 阅读

热门阅读

  1. 设计模式之备忘录模式

    2024-06-06 08:54:07       30 阅读
  2. LSTM 词语模型上的动态量化

    2024-06-06 08:54:07       24 阅读
  3. 面试高频问题----3

    2024-06-06 08:54:07       28 阅读
  4. IO转换流

    2024-06-06 08:54:07       27 阅读
  5. springboot项目Redis统计在线用户

    2024-06-06 08:54:07       29 阅读
  6. 怎么排查native层的bug

    2024-06-06 08:54:07       24 阅读
  7. 【k8s的三种探针】

    2024-06-06 08:54:07       25 阅读
  8. Scala学习笔记7: 对象

    2024-06-06 08:54:07       30 阅读
  9. 小程序真题合集

    2024-06-06 08:54:07       24 阅读