From the course: Command Line Data Analysis
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Solution: Weather - Unix Tutorial
From the course: Command Line Data Analysis
Solution: Weather
(upbeat music) - [Instructor] Let's have a look at my solution. So if we look at the weather.csv, we see the first column, column number one, are the dates. The second one is the minimal temperature, and the third one is the maximal. I cannot draw more than a single plot from standard input, so I'm going to use the file. So I will just start with gnuplot -e and then start my script. First, I want to set the terminal to png, and this is just for code spaces. Then I want to view a grid. And then xtics, I want to rotate them. For the y-axis, I want to limit the range. I see that maximal value is around 30, so I can do set yrange between 0 and 30. And now we can do the plot. So data/weather.csv. And I'm going to use zero, which is this pseudo column, and then two for the minimal temperature. And then take the xtics from one, which is the date with lines title. Let's do the TMI. And now I do a comma. And then I'm…