avatar
文章
2976
标签
100
分类
63
首页
时间轴
标签
分类
知识库
关于
友链
LogoEstom的博客simple_axisline3 返回首页
搜索
首页
时间轴
标签
分类
知识库
关于
友链

simple_axisline3

发表于2020-09-26|更新于2020-09-26|Python
|总字数:63|阅读时长:1分钟|浏览量:

简单的轴线3

简单的轴线3

1
2
3
4
5
6
7
8
9
10
11
12
import matplotlib.pyplot as plt
from mpl_toolkits.axisartist.axislines import Subplot

fig = plt.figure(1, (3, 3))

ax = Subplot(fig, 111)
fig.add_subplot(ax)

ax.axis["right"].set_visible(False)
ax.axis["top"].set_visible(False)

plt.show()

下载这个示例

  • 下载python源码: simple_axisline3.py
  • 下载Jupyter notebook: simple_axisline3.ipynb
文章作者: Estom
文章链接: https://estom.github.io/2020/09/26/Python/matplotlab/gallery/axisartist/simple_axisline3/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Estom的博客!
cover of previous post
上一篇
demo_axes_grid
演示Axes Grid具有单个或自己的彩条的2x2图像的网格。 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131import matplotlib.pyplot as pltfrom mpl_toolkits.axes_grid1 import ImageGriddef get_demo_image(): import numpy as np from matplotlib.cbook import get_sample_data f = get_...
cover of next post
下一篇
demo_anchored_direction_arrows
演示锚定方向箭头 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172import matplotlib.pyplot as pltimport numpy as npfrom mpl_toolkits.axes_grid1.anchored_artists import AnchoredDirectionArrowsimport matplotlib.font_manager as fmfig, ax = plt.subplots()ax.imshow(np.random.random((10, 10)))# Simple examplesimple_arrow = AnchoredDirectionArrows(ax.transAxes, 'X', 'Y')ax.add_artist(simple_arrow)# High...
avatar
Estom
也许那年在绿色的麦浪中奔跑的时候,就注定了我此生的繁华与悲叹
文章
2976
标签
100
分类
63
关注
公告
欢迎参观Estom的小屋
目录
  1. 1. 简单的轴线3
    1. 1.1. 下载这个示例
最新文章
自引用泛型概述
自引用泛型概述2025-12-21
02 集合底层结构
02 集合底层结构2025-12-18
11 Arrays和Collections
11 Arrays和Collections2025-12-18
06 JUC并发容器
06 JUC并发容器2025-12-18
30 问题排查和性能优化指南
30 问题排查和性能优化指南2025-09-14
© 2025 - 2026 By Estom框架 Hexo 8.1.1|主题 Butterfly 5.5.3
搜索
数据加载中