Questions tagged [legend-properties]

legend-properties refers to various chart libraries and the ability to programmatically customise legends in charts generated by those libraries.

legend-properties refers to various chart libraries and the ability to programmatically customise legends in charts generated by those libraries. Examples for proper use of the tag is :

413 questions
0
votes
1 answer

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, pointIndex, data) { …
user2023359
  • 289
  • 2
  • 10
  • 18
-1
votes
2 answers

Can any one help me fix this legend issue?

Can any expert help me merge the following legend? I would like all the two legends to be merged Can any expert help me merge the following legend? I would like all the two legends to be merged def dominates(bestRouteTime, num_buses): dominating…
-1
votes
1 answer

How do I plot a function in python that looks like the one in the picture?

I need to plot this graph (exactly as in the picture). It is sin and cos of x, where x are equally spaced 100 numbers between 0 and 2 pi. So far, I wrote x=np.linspace(0, 2*math.pi,100) import matplotlib.pyplot as plt %matplotlib inline…
huda95x
  • 149
  • 1
  • 1
  • 5
-1
votes
1 answer

Creating legend in R when using ggplot(), geom_smooth

I have created a plot of smooth lined curves of some data along with the corresponding data points with the following code in rstudio: #begin code library(ggplot2) ggplot(mydata, aes(x,y)) + geom_point() + geom_smooth() p <- ggplot() + # blue…
-1
votes
1 answer

Change ggplot legends

I am relatively new using the ggplot package. I want to rename the legend of a plot using the names "Sp1" and "Sp2". I have tried to make it using the following code but I have been unable to do it. This is the code: t<-read.table…
user12257
  • 11
  • 4
-2
votes
2 answers

Add regression line legend to geom_abline

I've coded this: ggplot() + geom_point(mapping = aes(x = X, y = y)) + geom_abline(intercept = -0.9930872, slope = 0.4866284, colour = "red") + geom_abline(intercept = -1, slope = 0.5, colour = "blue") but cannot seem to get a working…
PS94
  • 33
  • 1
  • 1
  • 6
-2
votes
1 answer

How do I right-align text and symbols in my legend box

... when specifying "topright" & put symbols on right side of legend rather than to the left of the labels. Basically I want my legend to be in a box on the top right corner of my plot, and have all my text right-aligned, not left aligned. My code…
draj01100
  • 13
  • 5
-2
votes
1 answer

Scale colour legend

can someone help to change the legend of this graphic to a continuous colour legend, like the legend in the second image. library(demography) plot.demogdata(portugal,series='male') legend("bottomright",legend=unique(portugal$year), …
user2898085
  • 49
  • 2
  • 4
  • 14
1 2 3
27
28