legend-properties Questions
4
Solved
I am producing some plots in matplotlib and would like to add explanatory text for some of the data. I want to have a string inside my legend as a separate legend item above the '0-10' item. Does a...
Taub asked 30/5, 2013 at 1:51
7
Solved
How can one create a legend for a line graph in Matplotlib's PyPlot without creating any extra variables?
Please consider the graphing script below:
if __name__ == '__main__':
PyPlot.plot(length, ...
Friedlander asked 1/10, 2013 at 20:53
4
Solved
So far I have been able to label the subplots just fine but I'm having an issue with the main one.
Here's the relevant part of my code:
data_BS_P = data[channels[0]]
data_BS_R = data[channels[1]]...
Delaryd asked 12/4, 2014 at 23:53
5
Solved
I plot a 2 geom_point graph with the following code:
source("http://www.openintro.org/stat/data/arbuthnot.R")
library(ggplot2)
ggplot() +
geom_point(aes(x = year,y = boys),data=arbuthnot,colour =...
Hayashi asked 18/7, 2013 at 3:18
3
I am trying to plot in R a correlation matrix using the corrplot package.
My problem is that the range of min and max correlation coefficients of the entire matrix is (-0.2,0.2). I plot the matrix...
Tripping asked 23/1, 2015 at 12:11
3
Solved
I know how to set the legend location of matplotlib plot with plt.legend(loc='lower left'), however, I am plotting with pandas method df.plot() and need to set the legend location to 'lower left'.
...
Briefs asked 17/1, 2020 at 17:6
4
Solved
I am trying to plot some data with confidence bands. I am doing this with two plots for each data stream: plot, and fill_between. I would like the legend to look similar to the plots, where each en...
Areola asked 26/2, 2015 at 1:16
2
Solved
A colleague and I have been trying to set custom legend labels, but so far have failed. Code and details below - any ideas much appreciated!
Notebook: toy example uploaded here
Goal: change defau...
Accumulator asked 20/5, 2018 at 14:15
0
I am using the new seaborn.objects API available in v0.12.0. None of the examples show how to move the legend position. For example, moving the legend to the bottom. Is there a way to do this?
Usin...
Ivett asked 16/9, 2022 at 16:35
1
Using geom_rect I am separating my data into classes in a ggplot.
These classes (v high, high, medium, low, v low) are denoted in the legend.
Is there a possibility to add the lower and upper limit...
Knish asked 17/6, 2022 at 12:30
10
Solved
I am plotting the same type of information, but for different countries, with multiple subplots with Matplotlib. That is, I have nine plots on a 3x3 grid, all with the same for lines (of course, di...
Callahan asked 23/3, 2012 at 5:13
4
Solved
I need help to put the number of the pie chart in the legend
Chart Image
If i hover the chart with mouse i can see the number relative to each item
i want to display it in the legend either
th...
Silvertongued asked 12/9, 2016 at 16:12
9
Solved
I have the following dataset:
x = [0, 1, 2, 3, 4]
y = [ [0, 1, 2, 3, 4],
[5, 6, 7, 8, 9],
[9, 8, 7, 6, 5] ]
Now I plot it with:
import matplotlib.pyplot as plt
plt.plot(x, y)
However, I wan...
Demarcusdemaria asked 14/7, 2012 at 6:38
2
I would like to know how to change the legend automatically generated by Geopandas. Mostly I would like to reduce its size because it's quite big on the generated image. The legend seems to take al...
Dolley asked 17/1, 2019 at 12:33
1
Solved
I was thrilled to discover that I can change the glyph used in the legend by adding key_glyph = draw_key_rect to my geom layer. I want to make the legend wider and shorter to resemble the legend in...
Raeleneraf asked 19/2, 2020 at 23:23
2
Solved
I am trying to create a legend in a python figure where the artist is a string (a single letter) which is then labelled. For example I would like a legend for the following figure:
import numpy as...
Sexivalent asked 27/11, 2014 at 15:47
3
Solved
Is there while rcParams['legend.frameon'] = 'False' a simple way to fill the legend area background with a given colour. More specifically I would like the grid not to be seen on the legend area be...
Mariahmariam asked 8/11, 2013 at 16:0
1
Solved
I want to get rid of that space in the legend between the name and the percentage. In the pic, I have highlighted the space in yellow.
For example, I want the first legend item to be "Lithuania...
Holmquist asked 7/4, 2019 at 12:2
5
Solved
What I want is like this:
What I get is this:
So how to merge the markers into one label?
also for the lines, for the lines, of course, u can realize it by not assigning label to the second lin...
Root asked 17/7, 2015 at 14:22
2
Solved
I've got a data frame that looks like this:
glimpse(spottingIntensityByMonth)
# Observations: 27
# Variables: 3
# $ yearMonth <dttm> 2015-05-01, 2015-06-01, 2015-07-01, 2015-08-01, 2015-09-0...
Continental asked 30/10, 2017 at 20:38
2
I'd like to make a horizontal legend below the ggvis chart. I can use legend properties to place it below the chart, but don't know how to make the labels horizontal below the legend title. Below i...
Palinode asked 26/5, 2016 at 15:35
2
Solved
Consider following code:
t=0:.01:(2*pi);
y=[sin(t);sin(t-pi/12);sin(t-pi/6);sin(t-pi/4)];
figure(1)
clf
subplot(6,1,5)
plot(t,y)
xlim([0 2*pi])
legend('1','2','3','4')
It produces follo...
Announcement asked 25/7, 2016 at 14:10
4
Solved
I'm trying to create a ggplot2 plot with the legend beneath the plot.
The ggplot2 book says on p 112 "The position and justification of legends are controlled by the theme setting legend.position,...
Krahling asked 1/6, 2010 at 23:15
1
I created a plot with a custom legend in ggplot2. I tried to draw a box around all the items in the legend, however I could only draw a box around each individual item. How can I create only one bo...
Hosfmann asked 1/12, 2017 at 0:18
2
Solved
I am trying to use the keyword bbox_to_anchor() in a matplotlib plot in Python.
Here is a very basic plot that I have produced based on this example. :
import matplotlib.pyplot as plt
x = [...
Overhear asked 23/5, 2015 at 14:22
1 Next >
© 2022 - 2024 — McMap. All rights reserved.