Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
减小散点图的文件大小
我目前正在尝试减小散点图的文件大小 我的代码如下所示 plt scatter a1 b1 plt savefig test ps 其中 a1 b1 是大小为 400 000 左右的数组 它给出的文件大小为 7 8MB 我尝试过添加 plt
python
matplotlib
带有第二个 y 轴的 Seaborn 图
i wanted to know how to make a plot with two y axis so that my plot that looks like this to something more like this by
python
matplotlib
Seaborn
具有透明框架和不透明边缘的图例
设置图例透明度时 plt legend framealpha 0 5 它会影响背景和边缘 如何仅将透明度应用于背景而不应用于边缘 我努力了 plt legend edgecolor 0 0 0 1 facecolor 1 1 1 0 1 我
python
matplotlib
legend
Alpha
使用热图居中表格
我正在尝试在seaborn 热图下添加一个matplotlib 表 我已经能够绘制它们 但没有对齐的运气 Main data df pd DataFrame A 20 10 7 39 B 1 8 12 9 C 780 800 1200 25
python
pandas
matplotlib
Seaborn
Heatmap
Matplotlib和Pandas结合时对fig、ax、plt的理解
我试图更好地理解在结合 Matplotlib 和 Pandas 进行绘图时 图形 轴和 plt 是如何组合在一起的 所接受的在这里回答 https stackoverflow com questions 29568110 how to us
python
pandas
matplotlib
忽略特定值的绘图数据点
我有一个如下所示的图 我正在尝试找出一种方法来忽略 x 值 0 0 的绘图点 基本上 我希望我的绘图不包含您在左上角看到的那 3 个点 y np array 4 7 6 6 6 4 6 8 6 2 7 2 6 1 5 9 6 4 6 6 x
python27
matplotlib
scatterplot
Matplotlib 条形图 - 有些条形不可见并且宽度似乎不同[重复]
这个问题在这里已经有答案了 该问题与 matplotlib 条形图有关 具体来说 当我绘制条形图时 有些条形不可见 Dots and bars uses the same data series so should be in the sa
python
python3x
python27
matplotlib
Tkinter
如何根据 pandas 列注释散点图中的点
Wanted Age 作为 x 轴 Pos 作为 y 轴 标签为 Player 名字 但由于某种原因 无法对点进行标记 Code import numpy as np import matplotlib pyplot as plt impo
python
pandas
matplotlib
annotations
scatterplot
使用 pandas 在不同轴上绘制条形图和时间序列图
我有一个 pandas 数据框 它是从具有以下结构的 csv 文件中读取的 Date Latitude Longitude Brand Pump AKI Trip Miles Total Miles Gallons MPG PPG Tota
python
matplotlib
plot
pandas
(python) matplotlib pyplot show() .. 是否阻塞?
我遇到了这个麻烦show 一遍又一遍 我确信我做错了什么 但不确定做我想做的事情的 正确 方法 我认为 我想要的是某种方法来阻塞主线程 直到 GUI 线程中发生事件 这样的事情第一次起作用 from matplotlib import py
python
Events
matplotlib
Blocking
matplotlib:Humor Sans 无法正确显示重音
如果我选择 Humor Sans 这就是我从 matplotlib 得到的结果 因此 DIST NCIA 显示为 DIST NCIA 与其他字体一起显示效果很好 代码在这里 coding utf 8 from matplotlib impo
matplotlib
fonts
archlinux
matplotlib 中的自定义对数轴缩放
我正在尝试使用 math log 1 x 来缩放绘图的 x 轴 而不是通常的 log 缩放选项 并且我已经查看了一些自定义缩放示例 但我无法得到我的上班 这是我的 MWE import matplotlib pyplot as plt im
python
matplotlib
axes
logarithm
URLError:
只是想让这段代码直接运行它的基本代码Python 金融 import datetime import matplotlib pyplot as plt from matplotlib finance import quotes histor
python
matplotlib
如何在pyplot中自动标注最大值
我试图弄清楚如何自动注释图形窗口中的最大值 我知道您可以通过手动输入 x y 坐标来注释您想要使用的任何点来完成此操作 annotate 方法 但我希望注释是自动的 或者自己找到最大值点 到目前为止 这是我的代码 import matplo
python
pandas
NumPy
matplotlib
使用 Memcache 缓存 Matplotlib(不会 Pickle)
我有一个图表 渲染需要 3 秒 然后可以从所述图表中添加一些内容来制作子图表 我想缓存主图表中的轴 以便稍后在渲染子图表时检索并修改它 我怎样才能克服这个错误 这是一个示例测试代码 import pylibmc cache pylibmc
python
memcached
matplotlib
pickle
matplotlib 将 x 轴与缩放时自动缩放的 y 轴链接起来
如何创建一堆具有链接 共享 x 轴的绘图 以便在缩放期间自动缩放所有 从属 绘图的 y 轴 例如 import matplotlib pyplot as plt fig plt figure ax1 fig add subplot 211
python
matplotlib
如何用不同颜色绘制一条线
我有两个列表如下 latt 42 0 41 978567980875397 41 96622693388357 41 963791391892457 41 972407378075879 lont 66 706920989908909 66
python
matplotlib
Seaborn 线图使用中位数而不是均值
我在用着seaborn lineplot 创建像这样的线图 代表平均值的线 由代表标准差的带包围 sns lineplot x trial y rvalues hue subject err style band ci sd data df
matplotlib
Seaborn
Median
在matplotlib中,如何绘制多色线,如彩虹
我想用不同的颜色绘制平行线 例如 我想要两条厚度为 3 的平行线 一红一蓝 而不是一条粗细为 6 的红线 任何想法将不胜感激 Merci 即使使用智能偏移 见下文 连续点之间存在锐角的视图中仍然存在问题 Zoomed view of sma
python
matplotlib
重新格式化双向条形图以匹配示例
我生成了这个条形图 使用此代码 s level margins fluid margins vp Volume 0 0 1L 0 718 0 690 2L 0 501 0 808 5L 0 181 0 920 MAP 0 0 64 0 43
python
pandas
matplotlib
plotly
barchart
1
2
3
4
5
6
...100
»