Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hope you can help. Note: For Bar Plots, you want the categories along the X-axis and the values along the Y-axis. 1. Create a list
Hope you can help.
Note: For Bar Plots, you want the categories along the X-axis and the values along the Y-axis. 1. Create a list named category with the 3 values ['Account A', 'Account B','Account C'] 2. Create a Numpy array named revenue using the list of values [300,450,700] 3. Use .figure to define the figure size (10,10) 4. Use .bar to create a bar graph with a range 0-3 and the array revenue 5. Set the xticks to the string values in category. [HINT: Remember to specify the range.] 6. Show the plot 6]: # Example 1 - Simple Bar Plot # INSERT CODE FOR STEPS 1 - 6 # Creating the raw data # Plotting it Creating Subplots 7. Copy the code to create category and revenue from the previous cell (Steps 1-2) 8. Use .figure to define the figure size (10,5) (a bit smaller) 9. Use .subplot(1,3,1) define a subplot with the row = 1; column = 3, and index 1 10. Copy the code to create bar graph and xticks from the previous cell (Steps 4-5) 11. Use .subplot(1,3,2) define a subplot with the row = 1; column = 3, and index 2 12. Use .plot to create a line plot with a range(0,3) using revenue as the values and set the color = red 13. Set the xticks to the string values in category. (same as in bar plot) 14. Use .subplot(1,3,3) define a subplot with the row = 1; column = 3, and index 3 15. Use .scatter to create a scatter plot with a range(0,3) using revenue as the values and set the color = green 16. Set the xticks to the string values in category. (same as in bar plot) 17. Show the plotStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started