# Plot the histogram of 'sex' attribute using Matplotlib # Use bins = 2 and rwidth = 0.85 code example
Example 1: # Plot the histogram of 'sex' attribute using Matplotlib # Use bins = 2 and rwidth = 0.85
In[2]: plt.style.use('classic')
Example 2: # Plot the histogram of 'sex' attribute using Matplotlib # Use bins = 2 and rwidth = 0.85
In[1]: import matplotlib as mpl
import matplotlib.pyplot as plt