Complete the code to import the module used to set global plotting defaults.
import [1] as mpl
The matplotlib module is imported as mpl to access rcParams for global defaults.
Complete the code to set the default figure size globally using rcParams.
mpl.rcParams['figure.[1]'] = (10, 6)
The key 'figure.figsize' sets the default figure size globally in matplotlib.
Fix the error in the code to set the default font size globally.
mpl.rcParams['font.[1]'] = 14
The correct rcParam key to set font size is 'font.size'.
Fill both blanks to set the default line width and color globally.
mpl.rcParams['lines.[1]'] = 2 mpl.rcParams['lines.[2]'] = 'red'
The keys 'lines.linewidth' and 'lines.color' set the default line width and color.
Fill all three blanks to create a dictionary of rcParams for font family, axes title size, and grid visibility.
custom_rc = {
'font.[1]': 'serif',
'axes.titlesize': [2],
'axes.[3]': True
}The keys 'font.family', 'axes.titlesize', and 'axes.grid' control font family, title size, and grid visibility.