All Questions
4
questions
0
votes
1
answer
175
views
Adjust spacing between 2 markers of same line displayed in the legend of matplotlib plot
I am plotting 2 markers of the same line using the following code and
I want to adjust the spacing between two markers in the legend.
Code : ref.
import matplotlib.pyplot as plt
from matplotlib....
0
votes
0
answers
118
views
How to add a legend according to colors?
How to add a legend according to colors? I looked at this question, but I got an error about handles. What is wrong, please?
import matplotlib.pyplot as plt
import pandas as pd
fig, ax = plt.subplots(...
1
vote
1
answer
196
views
Multiple marks on a legend
I created a legend for some marks that I plotted in an image from satellite data. I can't figure out how to have multiple marks for the different places I'm ploting.
import matplotlib.patches as ...
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. ...