博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
matplotlib绘图_Matplotlib绘图食谱评论
阅读量:2519 次
发布时间:2019-05-11

本文共 3872 字,大约阅读时间需要 12 分钟。

matplotlib绘图

Here is my review

这是我的评论

I was given a copy of and asked to review it. Thanks PACKT! Here is my review.

我得到了的副本,并要求对其进行审查。 谢谢! 这是我的评论。

前言 (Preface)

But first, I’ll mention I’ve worked on two projects recently that involved rendering matplotlib graphs directly to the browser i.e. via content-type: image/png. This is fun! It’s particularly enjoyable when you are trying to avoid performing the task “the right way”, which is arguably outputting JSON to some JavaScript graphing library e.g. . The dependencies are heavy i.e. pip install numpy, etc. but not that heavy and once they are installed, your web application can output graphs rivaling those produced by JavaScript, all written in Python . Highly recommended!

但是首先,我要提到我最近从事了两个项目,这些项目涉及直接将matplotlib图形渲染到浏览器,即通过内容类型:image / png。 这好有趣! 当您尝试避免以“正确的方式”执行任务时,这尤其令人愉快,因为可以将JSON输出到某些JavaScript图形库(例如 。 依赖性很重,即pip install numpy等,但不那么重,一旦安装, 您的Web应用程序就可以输出与JavaScript产生的图形相抗衡的图形,所有图形均使用Python 编写 。 强烈推荐!

第1章 (Chapter 1)

I think the code examples in Chapter 1 alone are worth the price of admission. Here is a video of me walking through the Chapter 1 code examples:

我认为仅第1章中的代码示例就值得接受。 这是我逐步学习第1章代码示例的视频:

You’ll notice the typical fare here: bar, line and pie graphs along with some more complex boxplot, histogram, horizontal bar, scatter and triangle graphs, all in various colors. For reference, here are the excerpted commands called to produce these graphs:

您会在这里注意到典型的票价:条形图,折线图和饼图以及一些更复杂的箱线图,直方图,水平条形图,散点图和三角形图,所有颜色都不同。 作为参考,以下是摘录的生成这些图的命令:

第2章 (Chapter 2)

Chapter 2 is all about customization e.g. via matplotlibrc. Here is a video of me walking through the Chapter 2 code examples:

第2章都是关于定制的,例如通过matplotlibrc。 这是我逐步学习第2章代码示例的视频:

For reference, here is the sample matplotlibrc included with the matplotlib distribution (lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc):

作为参考,这是matplotlib发行版(lib / python2.7 / site-packages / matplotlib / mpl-data / matplotlibrc)中随附的示例matplotlibrc:

As you can see, there are a lot of knobs you can turn here.

如您所见,您可以在此处转动许多旋钮。

第3章 (Chapter 3)

Chapter 3 is all about “annotations”. Here is a video of me walking through the Chapter 3 code examples:

第三章都是关于“注释”的。 这是我逐步学习第3章代码示例的视频:

“Annotations” includes related topics such as adding shapes and controlling tick spacing and labeling.

“注释”包括相关主题,例如添加形状以及控制刻度线间距和标记。

第四章 (Chapter 4)

Chapter 4 is all about “working with figures”. Here is a video of me walking through the Chapter 4 code examples:

第四章都是关于“与数字打交道”的。 这是我逐步学习第4章代码示例的视频:

“Working with figures” includes obvious topics like subplot and less obvious topics like setting the aspect ratio.

“使用图形”包括subplot等明显主题,而设置纵横比则不太明显。

第五章 (Chapter 5)

Chapter 5 is all about “working with file output”. For reference, here are some of the images produced by the examples in this chapter (I wrote jpg files instead of png files due to a problem with my libpng: .)

第5章都是关于“处理文件输出”的。 作为参考,这是本章中的示例生成的一些图像(由于libpng出现问题,我编写了jpg文件而不是png文件: 。)

alternate text

替代文字

Also covered in this chapter is .

本章还介绍了 。

第六章 (Chapter 6)

Chapter 6 is all about “working with maps”.

第6章都是关于“使用地图”的。

This chapter also introduces the .

本章还介绍了 。

第七章 (Chapter 7)

Chapter 7 is all about “working with 3D figures”.

第7章全部涉及“使用3D图形”。

For reference, here are the excerpted commands called to produce these graphs:

作为参考,以下是摘录的生成这些图的命令:

第八章 (Chapter 8)

Chapter 8 is all about working with the “user interface” interactively.

第8章全部涉及交互式使用“用户界面”。

Additionally, all of the popular graphical windowing environments are discussed: Tkinter, wxWidgets, GTK, Pyglet (three out of four of which I was able to install; GTK 2 vs GTK 3 .

此外,还讨论了所有流行的图形窗口环境:Tkinter,wxWidgets,GTK,Pyglet(我能够安装其中的四个; GTK 2 vs GTK 3使 。

结论 (Conclusion)

Overall I enjoyed this book and would .

总的来说,我喜欢这本书, 。

(You should probably or or both. And speaking of PACKT, you should definitely .)

(您可能应该或或同时两者 。谈到PACKT,您也绝对应该 。)

.很熟悉。

翻译自:

matplotlib绘图

转载地址:http://bsqwd.baihongyu.com/

你可能感兴趣的文章
补几天前的读书笔记
查看>>
HDU 1829/POJ 2492 A Bug's Life
查看>>
CKplayer:视频推荐和分享插件设置
查看>>
CentOS系统将UTC时间修改为CST时间
查看>>
redis常见面试题
查看>>
导航控制器的出栈
查看>>
玩转CSS3,嗨翻WEB前端,CSS3伪类元素详解/深入浅出[原创][5+3时代]
查看>>
iOS 9音频应用播放音频之播放控制暂停停止前进后退的设置
查看>>
Delphi消息小记
查看>>
HNOI2016
查看>>
JVM介绍
查看>>
将PHP数组输出为HTML表格
查看>>
Java中的线程Thread方法之---suspend()和resume() 分类: ...
查看>>
经典排序算法回顾:选择排序,快速排序
查看>>
BZOJ2213 [Poi2011]Difference 【乱搞】
查看>>
c# 对加密的MP4文件进行解密
查看>>
AOP面向切面编程C#实例
查看>>
Win form碎知识点
查看>>
避免使用不必要的浮动
查看>>
第一节:ASP.NET开发环境配置
查看>>