From the course: Python Data Analysis

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Weather charts

Weather charts - Python Tutorial

From the course: Python Data Analysis

Start my 1-month free trial

Weather charts

- [Instructor] We're going to conclude a NumPy practice, by making a quick but impressive weather visualization, that showcases the power and flexibility of NumPy and Matplotlib. It's inspired by the New York Times weather chart shown here. And it shows daily minima and maxima, the proper band in the context of their normal range, dark gray and of their records, light gray. We will again use Pasadena as an example, but you can do your own city, if it's included in the NOAA data set. Remember, we want to show Records, which means that we need all the data we can get. The Gateway, the module, that's a query for one year of data at a time. So, we'll call it repeatedly collecting the results in a comprehension and feeding that to NumPy vstack, which makes a two-dimensional array formally so one-dimensional arrays. The result can be visualized with matchshow. We've added also a colored bar to provide a reference of the…

Contents