Skip to content Skip to sidebar Skip to footer
Showing posts with the label 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?

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 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 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

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

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

Set Scatter Plot Legend Labels With Legend_elements

I just upgraded matplotlib to version 3.1.1 and I am experimenting with using legend_elements. I am… Read more Set Scatter Plot Legend Labels With Legend_elements

Adding Legend To A Radarchart In Python

I want to create a radarchart with legends for every plot that is created but until now it has been… Read more Adding Legend To A Radarchart In Python

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

Create Legend For Scatter Plot Using The Label Of The Samples In Matplotlib

I am using scatter plot in matplotlib to plot some points. I have two 1D arrays each storing the x … Read more Create Legend For Scatter Plot Using The Label Of The Samples In Matplotlib

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?

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