Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What command do you use to create a line plot in Matplotlib?
Think about the plot function in Matplotlib.
How do you display the plot?
Remember what final step is needed to visualize.
What library is used for data visualization in Python?
Consider which library is tailored for plots.
True or False: You must use plt.savefig() to display a plot.
Consider what is specifically done for visualization.
Create a bar chart with the data: categories = ['A', 'B', 'C'], values = [3, 7, 5]. Include a title and axis labels.
Think about how to use plt.bar() for bar charts.
How would you modify your previous plot to save it as 'bar_chart.png'?
What do you need to do right before showing the image to save it?
5 more questions in this section. Enroll free to practise them all.
Enroll free