Skip to content Skip to sidebar Skip to footer
Showing posts with the label Legend

Matplotlib Scatter Plot Different Colors In Legend And Plot

I have a scatter plot of multiple y-values for the same x-value, in matplotlib (python 2.7). There … Read more Matplotlib Scatter Plot Different Colors In Legend And Plot

Two Line Styles In Legend

I have a plot with two line styles (solid and dashed). I would like them to be used for the same le… Read more Two Line Styles In Legend

Why Doesn't The Color Of The Points In A Scatter Plot Match The Color Of The Points In The Corresponding Legend?

I have a sample scatterplot via matplotlib via the code below. import numpy as np import matplotlib… Read more Why Doesn't The Color Of The Points In A Scatter Plot Match The Color Of The Points In The Corresponding Legend?

How To Reposition Matplotlib Legend Without Plots To Change

I have a plot with 6 subplots with very similar data. I only want one legend and I would like to pl… Read more How To Reposition Matplotlib Legend Without Plots To Change

How To Get Legend Location In Matplotlib

I'm trying to get the legend location in matplotlib. It seems like Legend.get_window_extent() s… Read more How To Get Legend Location In Matplotlib

Plotting Legend For 2d Numpy Array

I like to create a legend based on certain numbers using Numpy and Matplotlib but to no avail. So I… Read more Plotting Legend For 2d Numpy Array

How To Make Two Markers Share The Same Label In The Legend Using Matplotlib?

What I want is like this: What I get is this: So how to merge the markers into one label? also fo… Read more How To Make Two Markers Share The Same Label In The Legend Using Matplotlib?

Why Doesn't The Color Of The Points In A Scatter Plot Match The Color Of The Points In The Corresponding Legend?

I have a sample scatterplot via matplotlib via the code below. import numpy as np import matplotlib… Read more Why Doesn't The Color Of The Points In A Scatter Plot Match The Color Of The Points In The Corresponding Legend?