What is the primary library used for data visualisation in Python?

Matplotlib Best Practice Quiz

Quiz
•
Computers
•
12th Grade
•
Hard

Jason Walker
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Seaborn
Matplotlib
Pandas
NumPy
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to create a basic line plot in Matplotlib?
plt.bar()
plt.scatter()
plt.plot()
plt.hist()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the `plt.xlabel()` function in Matplotlib?
To set the title of the plot
To label the x-axis
To label the y-axis
To add a legend
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to display the plot in Matplotlib?
plt.show()
plt.display()
plt.render()
plt.exhibit()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you change the colour of a line in a Matplotlib plot?
By using the `color` parameter in `plt.plot()`
By using the `linecolor` parameter in `plt.plot()`
By using the `colour` parameter in `plt.plot()`
By using the `line_colour` parameter in `plt.plot()`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the `plt.legend()` function do in a Matplotlib plot?
It adds a grid to the plot
It adds a legend to the plot
It sets the title of the plot
It labels the axes
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to create a bar chart in Matplotlib?
plt.plot()
plt.scatter()
plt.bar()
plt.hist()
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
XII CS 1-16 One Mark

Quiz
•
12th Grade
15 questions
Python Fundamental

Quiz
•
12th Grade
13 questions
untitled

Quiz
•
12th Grade - University
15 questions
Data Visualization Assessment

Quiz
•
7th - 12th Grade
15 questions
Data Visualization

Quiz
•
12th Grade
13 questions
Data Visualization Quiz

Quiz
•
12th Grade
10 questions
Data Handling Introduction

Quiz
•
12th Grade
13 questions
Data Visualization Quiz

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade