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

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

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

Adding Legend In Geopandas Plot With Subplots Changes Size Of Plot

I want to plot two GeoPandas plots with matplotlib subplots. The two maps have the same legend, and… Read more Adding Legend In Geopandas Plot With Subplots Changes Size Of Plot

Matplotlib Legend Height In Pixels

I need to know the size of the legend in pixels. I seem to only be able to get height = 1. from any… Read more Matplotlib Legend Height In Pixels

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?

Replace Matplotlib Legend's Labels With Image

I would like to use image instead of labels in the legend. For example, I draw 2 lines and show a l… Read more Replace Matplotlib Legend's Labels With Image

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

Change Main Plot Legend Label Text

So far I have been able to label the subplots just fine but I'm having an issue with the main o… Read more Change Main Plot Legend Label Text

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

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"

How To Put Multiple Symbols With The Same Label On The Same Line In The Legend?

I am making a scatter plot which is made up of dots that can be either open or closed dots, and can… Read more How To Put Multiple Symbols With The Same Label On The Same Line In The Legend?