Skip to main content

All Questions

0 votes
1 answer
76 views

Related to legends for subplots in plotly

I have created the 4 subplots with the legends showing on right sideWhen I create subplots in plotly , legends are created either in right side or in the bottom of all subplots. But how can I get ...
Rajesh Koyi's user avatar
0 votes
1 answer
291 views

Problem with handling multiple legends in subplots when you use plt.twinx()

I'm struggling to pass the list of my subplots with different scales on sides using plt.twinx() in each subplot to show all labels in a single legend box, but I get the following error: ...
Mario's user avatar
  • 1,821
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
0 votes
1 answer
294 views

How to change the location of the symbols/text within a legend box?

I have a subplot with a single legend entry. I am placing the legend at the bottom of the figure and using mode='expand'; however, the single legend entry is placed to the very left of the legend box. ...
user avatar
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, ...
pocketfullofcheese's user avatar