Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
如何在 matplotlib 中制作空白子图?
我正在 matplotlib 中制作一组子图 例如 3 x 2 但我的数据集少于 6 个 如何将剩余的子图留空 安排如下 0 0 0 1 1 0 1 1 2 0 2 1 这可能会持续几页 但在最后一页上 例如有 5 个数据集 2 1 框将为
python
matplotlib
axes
subplot
plt.subplots() 中的轴是一个“numpy.ndarray”对象,没有属性“plot”
如果您想理解错误消息 以下信息可能是多余的 请从阅读开始答案 https stackoverflow com a 37968229 6292000 by 用户707650 使用 MatPlotLib 我想要一个可通用的脚本 可以根据我的数据
python
NumPy
matplotlib
multidimensionalarray
subplot
Plotly:如何为所有子图设置xticks?
我无法操纵所有子图上的 xticks 我正在使用的 xticks 方法 根据文档 仅更改最顶层子图的 xticks 如何更改下部子图的 xticks 下面是我的代码 fig make subplots rows 2 cols 1 fig a
python
plotly
subplot
xticks
Matplotlib:子图的高度相同
在下面的示例中 如何将两个子图设置为相同的高度 minimal example import matplotlib pyplot as plt import numpy as np f ax1 ax2 plt subplots 1 2 im
python
matplotlib
subplot
imshow
断轴示例:子图大小不均匀
我还没有找到调整底部和顶部图高度的解决方案断轴示例 https matplotlib org stable gallery subplots axes and figures broken axis html of 绘图库 http mat
python
matplotlib
subplot
如何为同一 pandas Dataframe 中的所有不同列制作单独的 Seaborn kde 图?
如何为 pandas 数据框的所有列制作两个单独的 Seaborn kde 图 一个熊猫数据框 df 有六列 例如下面 df columns A B C D E F 我尝试了以下代码 但没有成功 下面的代码有什么提示吗 df sns loa
python
pandas
matplotlib
subplot
Seaborn
在一个图形中绘制某些内容,然后在另一图形中再次使用它
我希望我在正确的地方问这个问题 我有一个 for 循环 因为创建了许多数字 循环完成后 我想再生成一个图形 其中三个先前创建的图作为子图 我现在的代码是这样的 import numpy as np import matplotlib pyp
python
NumPy
matplotlib
subplot
Seaborn 子图上的 GridSpec
我目前有 2 个使用 seaborn 的子图 import matplotlib pyplot as plt import seaborn apionly as sns f ax1 ax2 plt subplots 2 sharex Tru
python
matplotlib
Seaborn
subplot
删除死区或增加子图中图形的大小
我在 matlab 中遇到问题 我输出一个图像 如示例所示 并通过打印命令保存它 我想要做的是以没有死空间的方式保存图像 即我想删除保存的图像中的空白 Example 黑色边框显示图像占用的总面积 这确实是一种空间浪费 我想删除这个 我想做
MATLAB
imageprocessing
subplot
Python不断覆盖先前绘图上的历史记录,但不将其保存为所需的绘图
我正在保存两个单独的图形 每个图形应包含 2 个图 问题是第一个图没问题 但第二个图不会在新图上被覆盖 而是在前一个图上被覆盖 但在保存的图中 我只找到其中 一个图 这是第一个数字 我正确地得到了第一个数字 import scipy sta
matplotlib
plot
Histogram
figure
subplot
子图之间的箭头
我决定玩玩this示例代码一点 我能够弄清楚如何在两个子图之间绘制一条直线 即使该线位于其中一个子图的边界之外 import matplotlib pyplot as plt import matplotlib as mpl import
python
matplotlib
subplot
刻度标签字体与 matplotlib 子图不一致
我正在使用绘制网格matplotlib pyplot subplots 并且我希望刻度标签采用 LaTeX 的无衬线字体 但是当我使用子图时 我总是会得到至少一个以 matplotlib 的默认字体呈现的刻度标签 这是一个 MWE impo
python
matplotlib
tex
subplot
为什么子图比图快得多?
我正在 MATLAB 中构建数据分析平台 该系统的特点之一是需要创建许多绘图 在任何给定时间只有一个图可用 用户可以根据请求遍历到下一个 上一个 这里强调的是不需要打开多个窗口 最初我使用的是figure每次显示新图时都会执行命令 但我注意
performance
MATLAB
plot
matlabfigure
subplot
让文本显示在子图图像前面
Ive got a lot of images of galaxies through different filters each line of subplots represents a new object with a uniqu
python
image
Text
matplotlib
subplot
更改 matplotlib 子图的大小
有没有一种简单的方法可以修改此代码 以便在不改变轴上比例的情况下使绘图更大 import numpy as np import matplotlib pyplot as plt import math matplotlib inline a
python
matplotlib
subplot
如何在 Plotly 中循环创建子图,其中每个子图上都有几条曲线?
我已经在下面编写了嵌套循环来成功生成 21 个图表 例如 每个国家一个图表德国天然气 奥地利天然气公司 dfs 是一个字典 以 21 个国家名称为键 以各自的储气 dfs 作为值 for country in list dfs storag
python
loops
plotly
subplot
在matlab中绘制一个包含许多子图的大图
我必须打印一张大海报 其中包含数字矩阵 让 MATLAB 排列它们对我来说非常实用 不幸的是 子图是为了适应特定的图形尺寸而显示的 因此很小且扭曲 我不想适应人物尺寸 而是想适应海报的纸张尺寸 我尝试过set gcf Position 并且
MATLAB
matlabfigure
subplot
将数字添加到子图
我是 matplotlib 的新手 正在尝试了解如何将数字添加到子图中 我有三个不同的函数 它们输出一个数字 def plot fig 1 vars args f ax put subplots do something ax plot x
python
matplotlib
subplot
带有子图的多个标题(副标题)
我在 3x3 网格中有一系列 9 个子图 每个子图都有一个标题 我想为每一行添加一个标题 为此 我考虑使用字幕 问题是 如果我使用 3 个字幕 它们似乎会被覆盖 并且似乎只显示最后一个 这是我的基本代码 fig axes plt subpl
python
matplotlib
title
subplot
matplotlib 动态子图数量
我正在尝试使用以下方法获取子图matplotlib 数量为subplots在运行时计算 如pnum以下示例有所不同 pnum len args m f ax1 ax2 plt subplots pnum sharex True sharey
python3x
matplotlib
subplot
«
1
2
3
4
»