Informatics Practices
A list namely temp contains average temperatures for seven days of last week. You want to see how the temperature changed in last seven days. Which chart type will you plot for the same and why ?
Answer
A line chart is the suitable choice for visualizing how the temperature changed over the last seven days. The line chart shows trends over time and displays continuous data, making it ideal for representing temperature values. The chart's ability to connect data points allows viewers to easily observe temperature trends and understand variations across the seven-day period.
Related Questions
What do you understand by xlimit and ylimit ? How are these linked to data being plotted ?
When should you use
(i) a line chart
(ii) a bar chart
(iii) a scatter chart
(iv) pie chart
(v) boxplot ?
What is histogram ? How do you create histograms in Python ?
What are various types of histograms that can be created through hist() function ?