All Questions
Tagged with legend legend-properties
253
questions
0
votes
1
answer
1k
views
JqPlot EnhancedLegendRenderer with Mouse events
I am using JqPlot to display some graph legends on the jqplotMouseEnter, and jqplotMouseLeave events.
Here is my code:
$('#FinancialsLineGraph').bind('jqplotMouseEnter', function(ev, seriesIndex,...
1
vote
2
answers
8k
views
change border from around legend from a scatterplot
This should be simple, but I can't figure out how to remove the border from around my legend. I would also like to place the legend within the graph and remove the inner grid lines and the top and ...
4
votes
1
answer
6k
views
Write x̄ (meaning average) in legend and how to prevent linebreak?
Good day!
I am not that familiar to R so I'd be glad to get a little help.
Assume I have the following minimal example:
test <- c(10,20,40,80,80)
avg <- mean(test)
avg <- format(avg,digits=...
2
votes
1
answer
1k
views
Fancy fieldset legend
I am trying to html'ify a design in which a video has a border around it, and on the border a title. The perfect way to accomplish this is with a fieldset and legand tag, however, I need to get fancy ...
1
vote
1
answer
199
views
Funny behaviour of multiple colors in R legend
I am getting some funny behaviour for colors in a legend I am adding to a plot. The plot is fairly hard to reproduce, but the behaviour can be reproduced from the example below:
mod3.cor.spo = 10
...
78
votes
9
answers
158k
views
How do I assign multiple legend labels at once?
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, ...
2
votes
1
answer
3k
views
color key legend in r
I am trying hard to figure out to add color gridient label to my plot ( link to previous question). Sorry for keep asking but this is maximum I could push me forward.
#data 1:
lab1 <- 1:10
group &...
337
votes
10
answers
377k
views
How do I make a single legend for many subplots?
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, ...
3
votes
1
answer
1k
views
Making a static legend, independent of the actual plot
I'm plotting two surfaces in Matlab, the ground level which is constant and the water level which is changing in time.
I use an if statement to change the colormap of the water with increasing depth,...
4
votes
1
answer
5k
views
Jfreechart - how to add a legend item with a dash?
I want to add a legend item with a dash (-) to denote some series in my chart. The default shape provided are only Plot.DEFAULT_LEGEND_ITEM_CIRCLE and Plot.DEFAULT_LEGEND_ITEM_BOX. Is there something ...
3
votes
2
answers
6k
views
asp.net charts: Legend overlapping with X-axis
I am creating a Chart (DataVisualization.Charting.Chart) programmatically, which is a Stacked Bar chart.
I am also adding Legend entries programmatically to it. I want to show the Legend at the ...
114
votes
4
answers
149k
views
How to move or position a legend in ggplot2
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, ...
9
votes
3
answers
25k
views
MATLAB: Assign multiple colors to text in legend
I'm trying to color code text in a legend. (Since I'm trying to sort several plots into different categories, I can't just rely on the line colors in the legend.) I've managed to set the text color ...