随笔分类 - 数据可视化
摘要:本文记述了用 Matplotlib 在线性坐标系中绘制三角函数图象的例子。 代码主体内容如下: ... def main(): fig, axs = plt.subplots(1, 3, figsize=(14,4.5)) #1 axs[0] = configure_axes(axs[0], 'Tr
阅读全文
摘要:本文记述了用 Matplotlib 在线性坐标系中绘制对数函数图象的例子。 代码主体内容如下: ... def main(): fig, ax = plt.subplots(figsize=(8,8)) #1 ax = configure_axes(ax, 'Logarithmic Function
阅读全文
摘要:本文记述了用 Matplotlib 在线性坐标系中绘制指数函数图象的例子。 代码主体内容如下: ... def main(): fig, ax = plt.subplots(figsize=(8,8)) #1 ax = configure_axes(ax, 'Exponential Function
阅读全文
摘要:本文记述了用 Matplotlib 在线性坐标系中绘制幂函数图象的例子。 代码主体内容如下: ... def main(): fig, ax = plt.subplots(figsize=(8,8)) #1 ax = configure_axes(ax, 'Power Function', 5, 5
阅读全文
摘要:本文记述了用 Matplotlib 在线性坐标系中绘制二次函数图象的例子。 代码主体内容如下: ... def main(): fig, axs = plt.subplots(1, 3, figsize=(14,4.5)) #1 axs[0] = configure_axes(axs[0], 'Qu
阅读全文
摘要:本文记述了用 Matplotlib 在线性坐标系中绘制一次函数图象的例子。 代码主体内容如下: ... def main(): fig, ax = plt.subplots(figsize=(8,8)) #1 ax = configure_axes(ax, 'Linear Function', 10
阅读全文
摘要:本文记述了用 Matplotlib 在对数坐标系中绘制图象的一种方法,并在以 2 为底的对数坐标系上展示了 选择排序、冒泡排序(二)、快速排序(四) 的性能数据图象。 笔者按如下布局绘制了 12 (4x3)幅图象,其中 [a,b] 代表某幅图象的位置。 + + + + | | | | | 选择排序
阅读全文
摘要:本文摘译了《Matplotlib_3.3.4.pdf》 的 User‘s Guide > Tutorials > Introductory 中关于 Matplotlib 的若干基本概念,如下。 Matplotlib graphs your data on Figures, each of which
阅读全文