Skip to main content

All Questions

68 questions with no upvoted or accepted answers
5 votes
1 answer
5k views

Place MATLAB legend such that it does not overlap on the plot

I am generating multiple plots of different datasets in succession using MATLAB. I would like the legend positions to be such that they don't overlap on the plotted lines and it would be ideal if this ...
Slothworks's user avatar
  • 1,083
4 votes
1 answer
1k views

How to reduce white space in octave legend function

I have build some algorithm and now I should make things pretty enough for presentation. Only problem what I have is a "strange" legend behaviour in octave. I dont know if the problem is because I am ...
Pukaai's user avatar
  • 377
4 votes
1 answer
946 views

JVectorMap: update legend

I'm using JVectorMap to show a map with colored countries. The map also includes a legend and an onRegionTipShow. In my application it's possible to alter the values the map is based on. After doing ...
Newton's user avatar
  • 53
4 votes
0 answers
7k views

r-legend in stacked bar plot

I'm relatively new to R and struggling to get my legend in the correct place. I've had a good look online and just can't seem to figure it out. # rating no yes # 1 140 38 # 2 72 46 # ...
N Gross's user avatar
  • 41
3 votes
0 answers
980 views

Colorbar too big - Python Matplotlib

I want to plot a geodataframe from Buenos Aires, the proportion of poor houses. There's the code: import pandas as pd import geopandas as gpd import matplotlib.pyplot as plt caba=gpd.read_file('https:...
Tomás's user avatar
  • 31
3 votes
0 answers
2k views

Show only top 5 values in legend for Pie Chart (Am4 charts)

I have a pie chart with legends made using Am4 charts but I need to display only the top 5 legend values. I wrote the following code: var chart = am4core.create("chartdiv2", am4charts.PieChart); ...
Thanatos's user avatar
  • 292
3 votes
0 answers
1k views

\mathrm mode for legend labels and legend props in matplotlib

So I am having a little alignment issue with my legend in matplotlib. Hopefully it is easily solvable with the right know-how. I have scoured the matplotlib website but I'm struggling to find the ...
GCien's user avatar
  • 2,341
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,...
Tian Kjaer Jensen's user avatar
2 votes
0 answers
235 views

Multiple Legends With Different Themes R

So I made a plot with multiple legends in it, but due to circumstances, I would like to make them in a different location and have the line's legend not have such a thick border. Here's the code: ...
L.Zingg's user avatar
  • 85
2 votes
0 answers
69 views

R: Legend position is c(1,0.5), but it is still inside my chart. How can I move it outside without it beeing cut off

I am plotting and saving a pie Chart and want the legend to be closer to the chart than with no position specification. When using This puts the legend inside my pie and when moving the legend even ...
Katsuyo's user avatar
  • 73
2 votes
0 answers
184 views

Adding custom value to AmLegend valueText/periodValueText in AmXYChart

I am trying to plot line chart with AmXYChart instead of serial chart as I wanted to update all the line independently on a real-time basis. And also wanted to update valueText in legend for all line ...
sujit tiwari's user avatar
2 votes
1 answer
2k views

Reorder legend items in bokeh

In the example from the documentation from bokeh.io import show from bokeh.models import ColumnDataSource from bokeh.palettes import RdBu3 from bokeh.plotting import figure c1 = RdBu3[2] # red c2 = ...
Antony Hatchkins's user avatar
1 vote
0 answers
201 views

Make legend horizontal and reduce the size in Plotly Dash

I am trying to make the attached legend horizontal and smaller in size but it's not working. Also if you see the Plot is hidden below the legend. (Some states are not visible) How can I set that to ...
Himanshu Joshi's user avatar
1 vote
0 answers
340 views

Leaflet legend with subtitles for grouped values

Is there a way to add subtitles to leaflet legends? The following example produces a functioning legend. However, is there a way to combine the subgroups to the same legend? I could imagine this could ...
Beni's user avatar
  • 251
1 vote
1 answer
890 views

Adding multiple legends to multiple subplots

I am trying to display multiple legends within multiple subplots. Currently, I am able to create figures with subplots and display multiple legends within one plot but can't combine the two. They seem ...
sunnyklein1's user avatar

15 30 50 per page
1
2 3 4 5