Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
如何将图例放在情节之外
我有一系列 20 个图 不是子图 要在一个图中绘制 我希望图例是在盒子之外的 同时 我不想更改轴 因为图形的尺寸会减小 我想将图例框保留在绘图区域之外 我希望图例位于绘图区域右侧的外部 有没有办法减小图例框内文本的字体大小 从而使图例框的尺
python
matplotlib
Seaborn
legend
将颜色条作为图例添加到 matplotlib 散点图(多个子图,多个散点图)
我有几个子图 我想向其中添加单个颜色条 每个子图由 7 个散点组成 我找到了有关如何添加颜色条的建议 但它们主要与每个散点的值相关 而不是与行本身相关 代表性示例代码 import numpy as np from matplotlib i
python
matplotlib
legend
colorbar
scatter
ggplot2 中的对数色标会压缩某些图例数字
我正在尝试创建一个类似于以下问题和回答的情节 ggplot2 中有没有内置的方法可以进行对数色标 https stackoverflow com questions 8069837 is there a built in way to do
r
ggplot2
legend
传单通过图层选择添加/删除图例
我是 Leaflet JavaScript 的新手 并且一直在努力让图例仅在从图层控件中选择特定图层时才显示地图 我有三层 其中一层我希望没有图例 另外两层有相应的图例 我遇到了一个例子 但未能使其工作 Add and remove leg
Dictionary
leaflet
layer
legend
R 并排分组箱线图
我有两种植物气体排放的时间数据 这两种植物都经过了相同的处理 和一些以前的帮助 https stackoverflow com questions 23848186 unify boxplot factor group colours 23
r
Colors
legend
boxplot
R:使用 Lattice 从子图到 2x2 grid.arrange 面板共享图例 [重复]
这个问题在这里已经有答案了 我正在研究这个问题here https stackoverflow com questions 40691773 r four lattice barcharts side by side in 2x2 wind
r
legend
Lattice
ggplot和两个不同的geom_line():图例不出现
我有以下代码 dput数据集的数据在这里 ruz lt structure list date structure c 16617 16618 16619 16622 16623 16624 16625 16626 16629 16630
r
ggplot2
legend
ggplot legend:更改自动图例的顺序
当有几组图时 我正在努力处理 ggplot 中的图例顺序 这是一个例子 library ggplot2 library data table data lt data table time rep 1 50 4 dampingtime re
r
ggplot2
legend
图例显示带有 geom_vline 的意外黑线
在查看了 StackOverflow 上提供的一些答案后 我一直试图添加一个额外的图例 但不知何故我无法完成这项工作 我正在使用以下代码 x breaks lt seq as Date 2010 1 1 as Date 2015 4 1 m
r
ggplot2
legend
使用 PathCollections 的图例
我正在使用集合绘制圆圈组 但无法生成三个类别的图例 我想 第 1 类 红色圆圈 类别 2 蓝色圆圈 第 3 类 黄色圆圈 import matplotlib import matplotlib pyplot as plt from matp
python
matplotlib
legend
legendproperties
使用 par 时图例框宽度不正确
我有问题 我的图例太大 我的代码 par mfrow c 1 2 hist alvsloss breaks 100 freq F main Histogramm density curve gaussian kernel n and fit
r
plot
width
legend
Matlab:如何在散点图中设置图例的颜色,其中每个数据点获得不同的颜色?
这是示例代码 x rand 100 1 y rand 100 1 score rand 100 1 figure colormap flipud bone caxis 0 1 axis 0 1 0 1 scatter x y 50 scor
MATLAB
matlabfigure
legend
scatterplot
colormap
如何在具有多个时间序列的 GGPLOT 中插入图例
我正在尝试在单个图表上绘制多个时间序列GGPLOT 数据集是一个数据框第一列的日期格式为日期 名为Time 以及其他列上的时间序列 名为V1 V2 等等 I tried gg1 ggplot geom line data PCA2 aes
r
ggplot2
legend
使用美观和 geom_text 时从图例中删除“a”
如何从这段代码生成的图例中删除字母 a 如果我删除geom text 那么 a 字母将不会显示在图例中 我想保留geom text 尽管 ggplot data iris aes x Sepal Length y Sepal Width s
r
ggplot2
legend
aesthetics
matplotlib 图例无法与句柄正常工作
Matplotlib 可以自动显示图例 也可以通过为其提供绘图句柄来手动显示图例 但不知怎的 后者对我来说不能正常工作 举个例子 legend handles lgh plt plot 0 1 0 1 r lgh plt plot 0 1
python
matplotlib
legend
legendproperties
如何向此自定义的facet_wrap 添加geom_quantile 图例?
我最近得到了很大的帮助 https stackoverflow com questions 60655019 why does strip text color from facet wrap not correspond to eleme
r
ggplot2
plot
legend
添加输入变量以在 Python 中绘制标题/图例
我想在绘图标题 图例 注释文本中显示用于绘制某个函数的参数的当前值 举个简单的例子 我们拿一条直线 import numpy import matplotlib pyplot as plt def line m c x numpy lins
python
matplotlib
Text
legend
gnuplot:图例隐藏在数据后面
我是 gnuplot 的新手 在绘制堆积直方图时 我发现图例隐藏在数据后面 有没有办法将图例放在数据上方 非常感谢你的帮助 编辑 我目前正在使用设置键外部底部将图例放置在外部 但这不是我想要的最佳解决方案 最近的版本允许将图例的背景设为白色
gnuplot
legend
绘图和 fill_ Between 的组合图例条目
这类似于Matlab 结合阴影误差和实线平均值的图例 https stackoverflow com questions 17617190 matlab combine the legends of shaded error and sol
matplotlib
legend
Geopandas 减少图例大小(并删除地图下方的空白区域)
我想知道如何更改 Geopandas 自动生成的图例 大多数情况下 我想减小它的大小 因为它在生成的图像上相当大 图例似乎占据了所有可用空间 另外一个问题 您知道如何删除地图下方的空白区域吗 我尝试过 pad inches 0 bbox i
legend
geopandas
legendproperties
«
1
2
3
4
5
6
...11
»