HOME/Articles/

matplotlib example soccer jerseys dominant color matplotlib (snippet)

Article Outline

Python matplotlib example 'soccer jerseys dominant color matplotlib'

Modules used in program:

  • import seaborn as sns; sns.set() # for plot styling
  • import matplotlib.pyplot as plt

python soccer jerseys dominant color matplotlib

Python matplotlib example: soccer jerseys dominant color matplotlib

import matplotlib.pyplot as plt
from matplotlib import rcParams # for customizing Matplotlib
from mpl_toolkits.mplot3d import Axes3D # for 3D Scatter Plot
import seaborn as sns; sns.set()  # for plot styling

# to render the figure in a notebook
%matplotlib inline
# Set Matplotlib default padding for title label to 20 points
rcParams["axes.titlepad"] = 20
# Set Matplotlib default padding for axis label to 5 points
rcParams["axes.labelpad"] = 10
# Set Matplotlib default background color to white
rcParams["figure.facecolor"] = "w"