What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-13 23:04:02
how to plot a scatter plot in matplotlib
# Import matplotlib import matplotlib.pyplot as plt # Set plot space as inline for inline plots and qt for external plots %matplotlib inline # Set the figure size in inches plt.figure(figsize=(10,6)) plt.scatter(x, y, label = "label_name" ) ... Add solution -
Python 2021-09-13 10:50:03
how to add subtitle matplotlib
import pandas as pd import matplotlib.pyplot as plt d = {'series a' : pd.Series([1., 2., 3.], index=['a', 'b', 'c']), 'series b' : pd.Series([1., 2., 3., 4.], index=['a', 'b', 'c', 'd'])} df = pd.DataFrame(d) title_string = "This is the title... Add solution -
Python 2021-09-12 20:27:02
matplitlib how to draw a histogram
import matplotlib.pyplot as plt x = [1,1,2,3,3,5,7,8,9,10, 10,11,11,13,13,15,16,17,18,18, 18,19,20,21,21,23,24,24,25,25, 25,25,26,26,26,27,27,27,27,27, 29,30,30,31,33,34,34,34,35,36, 36,37,37,38,38,39,40,41,41,42, 43,44,45,... Add solution -
Python 2021-09-11 04:32:02
classification fuctions
import numpy as np import pandas as pd import matplotlib.pyplot as plt import warnings warnings.filterwarnings('ignore') import seaborn as sns from sklearn.preprocessing import PowerTransformer from sklearn.preprocessing import StandardScaler from sklear... Add solution -
Other 2021-09-08 22:59:02
percentage stacked bar chart sns
# import libraries import seaborn as sns import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as mpatches # load dataset tips = sns.load_dataset("tips") # set the figure size plt.figure(figsize=(14, 14)) # from raw val... Add solution