合集-函数图象

摘要:本文记述了用 Matplotlib 在对数坐标系中绘制图象的一种方法,并在以 2 为底的对数坐标系上展示了 选择排序、冒泡排序(二)、快速排序(四) 的性能数据图象。 笔者按如下布局绘制了 12 (4x3)幅图象,其中 [a,b] 代表某幅图象的位置。 + + + + | | | | | 选择排序 阅读全文
posted @ 2024-09-02 10:19 green-cnblogs 阅读(71) 评论(0) 推荐(0)
摘要:本文记述了用 Matplotlib 在线性坐标系中绘制一次函数图象的例子。 代码主体内容如下: ... def main(): fig, ax = plt.subplots(figsize=(8,8)) #1 ax = configure_axes(ax, 'Linear Function', 10 阅读全文
posted @ 2024-09-27 15:47 green-cnblogs 阅读(142) 评论(0) 推荐(0)
摘要:本文记述了用 Matplotlib 在线性坐标系中绘制二次函数图象的例子。 代码主体内容如下: ... def main(): fig, axs = plt.subplots(1, 3, figsize=(14,4.5)) #1 axs[0] = configure_axes(axs[0], 'Qu 阅读全文
posted @ 2024-09-29 14:00 green-cnblogs 阅读(71) 评论(0) 推荐(0)
摘要:本文记述了用 Matplotlib 在线性坐标系中绘制幂函数图象的例子。 代码主体内容如下: ... def main(): fig, ax = plt.subplots(figsize=(8,8)) #1 ax = configure_axes(ax, 'Power Function', 5, 5 阅读全文
posted @ 2024-10-09 14:21 green-cnblogs 阅读(60) 评论(0) 推荐(0)
摘要:本文记述了用 Matplotlib 在线性坐标系中绘制指数函数图象的例子。 代码主体内容如下: ... def main(): fig, ax = plt.subplots(figsize=(8,8)) #1 ax = configure_axes(ax, 'Exponential Function 阅读全文
posted @ 2024-11-11 15:13 green-cnblogs 阅读(104) 评论(0) 推荐(0)
摘要:本文记述了用 Matplotlib 在线性坐标系中绘制对数函数图象的例子。 代码主体内容如下: ... def main(): fig, ax = plt.subplots(figsize=(8,8)) #1 ax = configure_axes(ax, 'Logarithmic Function 阅读全文
posted @ 2024-11-13 13:14 green-cnblogs 阅读(87) 评论(0) 推荐(0)
摘要:本文记述了用 Matplotlib 在线性坐标系中绘制三角函数图象的例子。 代码主体内容如下: ... def main(): fig, axs = plt.subplots(1, 3, figsize=(14,4.5)) #1 axs[0] = configure_axes(axs[0], 'Tr 阅读全文
posted @ 2024-12-26 12:42 green-cnblogs 阅读(114) 评论(0) 推荐(0)