1/19
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What is the primary Python library for creating static visualizations discussed in the document?
matplotlib
How do you import the pyplot module from matplotlib conventionally?
import matplotlib.pyplot as plt
What Jupyter notebook command enables interactive plotting?
%matplotlib notebook
What method creates a new figure in matplotlib?
plt.figure()
How do you add a subplot to a figure in matplotlib?
fig.add_subplot(rows, cols, index)
What is the purpose of plt.subplots()?
Creates a new figure and returns a NumPy array of subplot objects in a grid layout
How do you adjust spacing between subplots?
plt.subplots_adjust(wspace=None, hspace=None)
What does the 'k--' style option specify in matplotlib plotting?
A black dashed line
How do you set x-axis tick locations and labels?
ax.set_xticks() and ax.set_xticklabels()
What method adds a legend to a plot?
ax.legend() or plt.legend()
How do you add text annotations to a plot?
ax.text(x, y, 'text')
What method saves a figure to a file?
plt.savefig('filename.ext')
How do you configure global matplotlib settings?
plt.rc('component', **options)
What pandas attribute is used for basic plotting?
The .plot attribute (e.g., df.plot())
What seaborn function creates bar plots with confidence intervals?
sns.barplot()
How do you create a histogram in pandas?
series.plot.hist(bins=number)
What seaborn function creates both histogram and density plot?
sns.distplot()
What seaborn function creates scatter plots with regression lines?
sns.regplot()
What seaborn function creates a scatter plot matrix?
sns.pairplot()
What seaborn function is used for creating faceted plots?
sns.factorplot()