Skip to content
Advertisement

Tag: legend

How to put all legend entries on one line?

I can’t seem to find a solution. I have a legend that’s custom (using solution found here) and I’m trying to put multiple entries on one line rather than have each new entry under the previous one. How does one do? I’d like to have “(red marker) The red data, (blue marker) The blue data, etc…” all in one line

pyplot combine multiple line labels in legend

I have data that results in multiple lines being plotted, I want to give these lines a single label in my legend. I think this can be better demonstrated using the example below, As you can see at Out[23] the plot resulted in 5 distinct lines. The resulting plot looks like this Is there any way that I can tell

Move and resize legends-box in matplotlib

I’m creating plots using Matplotlib that I save as SVG, export to .pdf + .pdf_tex using Inkscape, and include the .pdf_tex-file in a LaTeX document. This means that I can input LaTeX-commands in titles, legends etc., giving an image like this which renders like this when I use it in my LaTeX document. Notice that the font for the numbers

How to put the legend outside the plot

I have a series of 20 plots (not subplots) to be made in a single figure. I want the legend to be outside of the box. At the same time, I do not want to change the axes, as the size of the figure gets reduced. I want to keep the legend box outside the plot area (I want the

Advertisement