Problem 3! The file ocean_temp.txt on canvas contains the variation of the ocean temperature between 1850 and 2011, wher

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Problem 3! The file ocean_temp.txt on canvas contains the variation of the ocean temperature between 1850 and 2011, wher

Post by answerhappygod »

Problem 3 The File Ocean Temp Txt On Canvas Contains The Variation Of The Ocean Temperature Between 1850 And 2011 Wher 1
Problem 3 The File Ocean Temp Txt On Canvas Contains The Variation Of The Ocean Temperature Between 1850 And 2011 Wher 1 (28.63 KiB) Viewed 110 times
Problem 3! The file ocean_temp.txt on canvas contains the variation of the ocean temperature between 1850 and 2011, where the first column represents the year and the second column represents the temperature. The file prerates.txt contains the number of pirates per thousand between 1850 and 2000. a) [25 pts] Write a python program to plot both data on the same figure as shown in the figure below. Hint to set the font size of the label, titles, ... use the parameter fontsize: (eg. fontsize = 16) Correlation between rising ocean temperature and a decrease in piracy Ocean temperature change Number of pirates 15 10 5 0 1860 1880 1900 1920 1940 Year 1960 1980 2000 2020

b) [25 pts] The plot in Fig 1 shows the correlation between rising ocean temperature and a decrease in piracy. However, since the temperature data and the number of pirates data have different range, interpreting the temperature variation becomes difficult. Use the subplot function to plot the two data sets on two different plots as shown in the figure below. Hint: you may use fig. tight laxout so that the subplots fit the figure area. Ocean temperature change in Celsius Ocean Temperature the Almigoneraler og mindre www 7900 2020 Year Number of pirates per thousand Number of pirates 1800 1000 2000 2000 Year
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply