use matplotlib to drew a table

Posted guoendlesslove

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了use matplotlib to drew a table相关的知识,希望对你有一定的参考价值。

$sudo apt-get install python3-matplotlib

gyf@gyf-VirtualBox:~$ python3
Python 3.6.9 (default, Nov  7 2019, 10:44:02)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> import matplotlib.pyplot as plt
>>> squares=[1,4,9,16,25]
>>> plt.plot(squares)
[<matplotlib.lines.Line2D object at 0x7f43fc0675f8>]
>>> plt.show()

After do that ,you will see a picture on your screen.Just try to do it.

以上是关于use matplotlib to drew a table的主要内容,如果未能解决你的问题,请参考以下文章

python用matplotlib画图提示Fail to allocate bitmap

matplotlib之__main__:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, s

UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figur

python使用matplotlib可视化线图(line plot)并为可视化图像添加图例(legend)信息(add legend to matplotlib plot)

不能使用 matplotlib.use('Agg'),图形总是显示在屏幕上

初学python,matplotlib库画图不显示求助