What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-26 00:01:21
matplotlib: use colormaps for line plot colors
import numpy as np import matplotlib.pylab as plt plt.rcParams["figure.figsize"] = [7, 7] plt.rcParams["figure.autolayout"] = True x = np.array([0,1]) y = np.array([1,1]) n = 50 colors = plt.cm.hsv(np.linspace(0, 1, n)) for i in range(... Add solution -
Python 2021-11-12 09:42:20
pandas plot heatmap
import matplotlib.pyplot as plt import seaborn as sns # optional: resize images from now on plt.rcParams["figure.figsize"] = (16, 12) # numeric_only_columns is a list of columns of the DataFrame # containing numerical data only # annot = True ... Add solution -
Python 2021-10-29 19:40:14
geopandas españa map
espania = espania.merge(df, left_on=['NAME_1'],right_on=['CCAA'], how='left') plt.rcParams["figure.figsize"]=20,20 my_map = espania.plot(column="Densidad", linewidth=0.3, cmap="Reds", scheme="quantiles", k=8, alph... Add solution