Category "colormap"

Adding colormap legend to Folium map

I'm trying to make a map in Folium with multiple layers, each consisting of shaded areas (using GeoJSON) with colors given by a colormap. I'd like to add legend

Change the facecolor of boxplot in pandas

I need to change the colors of the boxplot drawn using pandas utility function. I can change most properties using the color argument but can't figure out how t

Python: How to plot heat map of 2D matrix by ignoring zeros?

I have a matrix of size 500 X 28000, which contains a lot of zeros in between. But let us consider a working example with the matrix A: A = [[0, 0, 0, 1, 0],

Matplotlib - Getting colorbar to line up with colors in plot and to use original values as labels

I have a dataframe with two values x1 and x2, each of these points has a class label. import numpy as np import pandas as pd import matplotlib.pyplot as plt