美文网首页
讲解:Matplotlib、Java/Python、c/c++、

讲解:Matplotlib、Java/Python、c/c++、

作者: borenwai | 来源:发表于2020-01-12 15:48 被阅读0次

    Exercise 4: MatplotlibDue: 5pm Sunday Feb 4, 2018Problem 1: US age distribution?Read the US age distribution file (US_age_distribution.csv). The file is a plain text file that looks something like this.year,0-14 years,15-64 years,65 years+2005,20.43,67.25,12.322006,20.37,67.24,12.392007,20.24,67.27,12.49...After reading the data into lists (using csv module), make the following plots.time series of each group as a line charttime series of each group as a bar charttime series of these groups as a stack charta pie chart for the distribution at 2015In [1]:# Your code hereProblem 2: Population heightBase on the country_population_temperature_height.csv file,create a scatter plot to examine if there is a relationship between population and the average heightcreate a scatter plot to examine if there is a relationship between the average height and the average annual temperature of each countrymodify the scatter plot created in 2 to also include aMatplotlib留学生作业代做、代写Java/Python实验作业、代做c/c++编程作业、代写csv modulend present the population information in the scatter plot. (Hint: you can use different color or marker size to present population).In [2]:# Your code hereProblem 3: Plot hurricane tracksBased on data in the 2016_hurricane.csv file, use basemap to plot the tracks of all tropical storms during the 2016 hurricane season in the Atlantic basin. Make sure you use the proper map projection to have minimal distortion over the region.This document provides the detailed description about the format of the data.use different color to indicate the intensity of the storm: TD, TS, HU. Ignore other categorieslabel each track by the name of the storm.Hints:What basemap function should you use to make the plot?How do you use different colors based on hurricane intensity?This csv files contains multiple tropical storm data, so there are many header lines that are different from the data lines. How do you read this data so that you wont mix up the storms.In [3]:# Your code here转自:http://www.7daixie.com/2019050322005232.html

    相关文章

      网友评论

          本文标题:讲解:Matplotlib、Java/Python、c/c++、

          本文链接:https://www.haomeiwen.com/subject/yvziactx.html