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

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 Make Tabular Legend Using Matplotlib And Python

I am plotting a choropleth map in python from a shapefile and i want to customize the legend of the… Read more How To Make Tabular Legend Using Matplotlib And Python

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

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 Create An Ax.legend() Method For Contourf Plots That Doesn't Require Passing Of Legend Handles From A User?

Desired feature I would like to be able to call ax.legend() on an axis containing a contourf plot … Read more How To Create An Ax.legend() Method For Contourf Plots That Doesn't Require Passing Of Legend Handles From A User?

No Handles With Labels Found To Put In Legend

I'm trying to create a parallelogram in PyPlot. I'm not up to drawing the parallelogram--fi… Read more No Handles With Labels Found To Put In 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

Difficulty To Plot Legend For A Color Bar In Python 3.6

I have 3 colors (ccc) for 3 different types of rock (d2) and I would like to plot a legend with rec… Read more Difficulty To Plot Legend For A Color Bar In Python 3.6

Bokeh Position Legend Outside Plot Area For Stacked Vbar

I have a stacked vbar chart in Bokeh, a simplified version of which can be reproduced with: from bo… Read more Bokeh Position Legend Outside Plot Area For Stacked Vbar

3D Scatter Plot Legend Error From KMeans "No Handles With Labels Found To Put In Legend"

I have plotted 3D scatter plot for a KMeans model which I had fitted for RFM analysis. I used KMean… Read more 3D Scatter Plot Legend Error From KMeans "No Handles With Labels Found To Put In Legend"