Data Visualization - use Python to code (only the py file
is needed.)
Choose from these terms to answer question 1-10 (not all are
used)
pip axis legend
bar chart axes figure
numpy pie chart histogram
scatterplot plotly
fig, ax = plt.subplots()
ax.plot ()
tick
styles
1.) This is the container for one or more axes:
_________________
2.) This creates a single figure with a single axes:
__________________
3.) This numerical python package is widely used along with
matplotlib: _________________
4.) This is the Python package manager:
______________________
5.) fivethiryeight, Solarize_Light2, and fast are examples of
matplotlib
___________ .
6.) This is a visual key to explain the plotted data:
_____________
7.) This graph is an example of:
________________________
8.) This graph is an example of:
_______________________
9.) This graph is an example of:
_______________________
10,) This code is used to produce a line graph
______________________
11.) The code below (and the chart it produces) is incorrect.
Study the code and chart and identify what is incorrect.
Edit the program so that is correct.
(No need to send me the corrected image. I will produce it from
your code) (Reference: chapter 15 in our book)
import matplotlib.pyplot as plt squares = [1, 4, 9, 16, 25]
fig, ax = plt.subplots() ax.plot(squares, linewidth=2)
ax.set_title("Square Numbers")
ax.tick_params(axis='both') plt.show()
12) Given the below information, write the program to
produce the bar chart below: April sales data (in $K) for our Sales
Reps was as follows:
Mark = 285, Ada = 190, Khan = 395, Xie = 370, Zoe = 295
Data Visualization - use Python to code (only the py file is needed.) Choose from these terms to answer question 1-10 (n
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am