腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
使用
matplotlib
和
subplot
绘制
多个
柱状图
python
、
matplotlib
、
bar-chart
、
subplot
我想
使用
matplotlib
库(如果可能的话,或者其他库)
绘制
几个barplot,并
使用
subplot
将每个图形放置在其位置。 我还
使用
groupby在每个类别中进行分组,并对值求和。然后我只想显示三列(Num1、Num2、Num3): #Build
subplot
with three rows and two columnsfor i, category in enumerate([
浏览 46
提问于2019-01-31
得票数 2
回答已采纳
3
回答
用
Matplotlib
绘制
对数刻度直方图
python
、
pandas
、
numpy
、
matplotlib
、
statistics
6, 2, 27, 22, 1, 12, 7, 19, 81, 11, 173, 13, 7, 16, 19, 23, 197, 167, 1]x.plot.hist(bins=8)plt.show()x.plot(kind='hist', logx=True) 除了将X的对数
绘制
为直方
浏览 3
提问于2017-12-17
得票数 27
回答已采纳
1
回答
使用
python
和
matplotlib
的多图(非子图)
python
、
matplotlib
、
graph
我想
使用
python
和
matplotlib
一次
绘制
两个或更多的图形。我不想
使用
subplot
,因为它实际上是同一图纸上的两个或
多个
绘图。 有什么办法可以做到吗?
浏览 22
提问于2017-01-28
得票数 2
回答已采纳
1
回答
使用
matplotlib
更改子图的大小
matplotlib
我正在尝试
使用
matplotlib
绘制
多个
rgb图像 我
使用
的代码是: import numpy as np test = np.random.rand(1080, 720,3) plt.imshow(test我已经看到解决方案
使用
fig, ax = plt
浏览 17
提问于2019-04-15
得票数 0
1
回答
没有在for循环中工作的图,我只得到最后一个元素图。
loops
、
dataframe
、
machine-learning
、
boxplot
df是我用于房屋递归的数据。 sns.boxplot(x=df[i])
浏览 1
提问于2020-06-18
得票数 0
回答已采纳
4
回答
图1未关闭时
Matplotlib
崩溃
python-3.x
、
matplotlib
我正在
使用
使用
Python3.4的
Matplotlib
绘制
多个
图形。似乎您需要按这样的顺序关闭窗口,即必须最后关闭打开的第一个窗口。其他人有经验吗?有解决办法吗?下面是一个可以用来验证的简单示例代码:plt.figure(1
浏览 3
提问于2015-06-09
得票数 2
回答已采纳
1
回答
大多数
绘制
多个
信号的pythonic方法
python
、
python-2.7
、
matplotlib
如果需要
绘制
多个
信号,也应该提供一个图例。fig =
matplotlib
.figure.Figure(figsize=(8,6)) Signal3, =
subplot
.plot(xDataSignal3, yDataS
浏览 2
提问于2016-12-12
得票数 5
回答已采纳
2
回答
指数正态分布
machine-learning
、
preprocessing
、
normalization
对于下面显示的分布,我希望将指数分布转换为正态分布。我想将此作为数据预处理的一部分,以便分类器能够更好地解释该特性(此处命名为ipc )。由于(x轴)扩展,常规日志转换在这里不起作用。注释中已经指出了一个相关的答案,但我也在寻找一些Python代码的摘录。 谢谢
浏览 0
提问于2017-05-12
得票数 4
回答已采纳
3
回答
在ipython notebook中在一行中
绘制
两个图形
python
、
ipython
、
figure
我只是
使用
ipython中的内联来
绘制
图形但是,由于我想在笔记本中
绘制
数千个数字,并同时比较两个数字,但ipython只给了我这个,一个在另一个下面。并且,
subplot
不会成为我的选择,因为我只是在一个包中
使用
functions来
绘制
这两个图形。ee.hourly_plot(2)
浏览 0
提问于2016-05-20
得票数 2
1
回答
3D图+热图中的图4变量
python
、
heatmap
、
mplot3d
我认为它可以给我一些洞察力,通过将它们
绘制
在3D图中,然后添加第四个维度作为热图,但我不知道如何添加链接到数据帧中的一列的热图。这是我到目前为止所得到的: from mpl_toolkits.mplot3d import Axes3D ax = fig.add_
subplot
ax.scatter(Series1,Series2,Series3); 这将返回给我以下内容: (https://i.stack.imgur.com/qRGMv.png) 所以,上
浏览 47
提问于2020-10-23
得票数 0
2
回答
使用
draw_networkx(),如何显示
多个
绘图窗口?
networkx
下面的代码一次只创建一个窗口,第二个窗口仅在用户关闭第一个窗口时显示。nx.draw_networkx(..a..)
浏览 0
提问于2011-06-24
得票数 7
回答已采纳
1
回答
用Python
绘制
大文件中的数据
python
、
file
、
matplotlib
、
scatter-plot
我想在scatterplot中
绘制
其中的数据。该数据在文件中具有以下格式。为了从名为pltData的列表中
绘制
数据,我
使用
了以下代码:import
matplotlib
.cm as cm
SUBPLOT
1 = FIGURE.
浏览 3
提问于2020-07-07
得票数 0
回答已采纳
2
回答
如何用一个图形的
matplotlib
同时显示
多个
图像?
python
、
python-3.x
、
opencv
、
matplotlib
、
glob
我想一次在一个图形中显示
多个
图像(我
使用
了一组22幅图像,因此对于子图,我
使用
了5行
和
5列),但问题是,每当我关闭图形时,它们都一个一个地显示,下面是我是如何做到的:importglob fig=plt.figure() for i i
浏览 4
提问于2022-03-28
得票数 0
回答已采纳
3
回答
matplotlib
一次只
绘制
一个图形
python
、
matplotlib
假设我在python程序中有两个数字要
绘制
。我通过以下方式运行代码:这两个数字一次只显示一个:第二个数字在第一个图形关闭之前不会显示。
浏览 7
提问于2015-08-23
得票数 2
回答已采纳
1
回答
matplotlib
。如何在子图之间切换,而不是从头开始重新
绘制
?
python
、
matplotlib
示例:
subplot
(2,1,1) # now go back andplot something on
subplot
1 ...?
浏览 0
提问于2010-07-09
得票数 6
回答已采纳
1
回答
如何将两个数据数组
绘制
为彼此相邻的直方图
python
、
matplotlib
、
data-science
如果我有两个数组: a = [3 6 4 9] b = [4 8 2 7] 我想以直方图的形式
绘制
它们,每个索引的柱子挨着彼此。我该怎么做呢? X轴将类似于1,2,3,4-而y轴将从0到10。
浏览 49
提问于2020-08-18
得票数 0
回答已采纳
1
回答
matplotlib
,逐步动画
matplotlib
这是
matplotlib
上的一个非常基本的问题,但我想不出该怎么做:import
matplotlib
.pyplot as plt plt.figure(1)n= plt.bar([1,2,3,4],[1,2,3,4])n= plt.bar([1,2,3,4],[
浏览 2
提问于2012-06-19
得票数 6
回答已采纳
1
回答
如何并排
绘制
图像
和
图形?
python
、
matplotlib
、
histogram
、
fig
我试图用相同比例的plt.fig()
绘制
一个图像,并将其各自的
柱状图
并排
绘制
,但是我没有得到想要的输出。相反,我将直方图重叠到图像上。import
matplotlib
.image as mpimg plt.title(' image 1') plt.set_cmap('gray
浏览 2
提问于2017-03-11
得票数 2
回答已采纳
3
回答
如何
使用
输入的*.txt文件
绘制
一个非常简单的条形图?
python
、
matplotlib
、
bar-chart
我
使用
Python2.7
和
matplotlib
。我确实读了
matplotlib
文档,但它仍然对我没有帮助。我还想将我读到的日期添加到我的条形图中,使其看起来像谁能帮帮我?
浏览 0
提问于2012-07-24
得票数 25
回答已采纳
1
回答
matplotlib
.patches.FancyArrow行为不好吗?
python
、
matplotlib
当我试图
绘制
箭头时,我在
matplotlib
中发现了一种罕见的行为。(0.,0.,0.4,0.6) ax1 = fig.add_
subplot
(121)ax2.add_line(arrow) 你会注意到箭头不是
绘制
出来的。如果我们试图制作相同的图形,但现在
使用
箭头对象的不同副本: import
matplotlib
浏览 2
提问于2013-07-31
得票数 3
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券