文章
2976
标签
100
分类
63
首页
时间轴
标签
分类
知识库
关于
友链
Estom的博客
custom_cmap
返回首页
搜索
首页
时间轴
标签
分类
知识库
关于
友链
custom_cmap
发表于
2020-09-26
|
更新于
2020-09-26
|
Python
|
总字数:
10
|
阅读时长:
1分钟
|
浏览量:
从颜色列表创建颜色图
文章作者:
Estom
文章链接:
https://estom.github.io/2020/09/26/Python/matplotlab/gallery/images_contours_and_fields/custom_cmap/
版权声明:
本博客所有文章除特别声明外,均采用
CC BY-NC-SA 4.0
许可协议。转载请注明来源
Estom的博客
!
上一篇
demo_bboximage
BboxImage 演示BboxImage可用于根据边界框定位图像。此演示演示如何在text.Text的边界框内显示图像以及如何手动为图像创建边界框。 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061import matplotlib.pyplot as pltimport numpy as npfrom matplotlib.image import BboxImagefrom matplotlib.transforms import Bbox, TransformedBboxfig, (ax1, ax2) = plt.subplots(ncols=2)# ----------------------------# Create a BboxImage with Text# ----------------------------txt = ax1.text(0.5, 0.5, "test&q...
下一篇
contourf_log
Contourf 与记录颜色刻度演示在 Contourf 中记录颜色的标度 1234567891011121314151617181920212223242526272829303132333435363738394041import matplotlib.pyplot as pltimport numpy as npfrom numpy import mafrom matplotlib import ticker, cmN = 100x = np.linspace(-3.0, 3.0, N)y = np.linspace(-2.0, 2.0, N)X, Y = np.meshgrid(x, y)# A low hump with a spike coming out.# Needs to have z/colour axis on a log scale so we see both hump and spike.# linear scale only shows the spike.Z1 = np.exp(-(X)**2 - (Y)**2)Z2 = np.exp(-(X * ...
Estom
也许那年在绿色的麦浪中奔跑的时候,就注定了我此生的繁华与悲叹
文章
2976
标签
100
分类
63
关注
公告
欢迎参观Estom的小屋
目录
1.
从颜色列表创建颜色图
最新文章
自引用泛型概述
2025-12-21
02 集合底层结构
2025-12-18
11 Arrays和Collections
2025-12-18
06 JUC并发容器
2025-12-18
30 问题排查和性能优化指南
2025-09-14
搜索
数据加载中