G6EJD / ESP32-e-Paper-Weather-Display

An ESP32 and 2.9", 4.2" or 7.5" ePaper Display reads Weather Underground data via their API and then displays the weather
Other
946 stars 206 forks source link

Add RHS y-axis functionality to DrawGraph(). Implement for precipitation forecast #202

Closed jpolton closed 9 months ago

jpolton commented 1 year ago
  1. Add RHS y-axis labels option to Drawgraph().
    1. Plot prob of precip (pop) on precip forecast graph

The idea is to add an extra input to DrawGraph(), which specifies whether the y-axis in on the RHS or LHS of the plot. (This variable is a boolean whereby True --> LHS axis and False --> RHS axis)

This is used to display probability of precipitation as a line plot on top of the precipitation bar chart.

(Presently only implemented in Waveshare_7_5_T7.ino, will look at copying to other 7 inch displays. Hence draft PR)

Edit: Realised that I can not test the port to other display sizes as I only have access to the 7.5" 800x480 E-Paper Layout. Hence only propose edits for Waveshare_7_5_T7.ino and will not propose edits for other screen sizes.

image Lefthand y-axis: mm. Righthand y-axis: % probability of precipitation.

jpolton commented 9 months ago

Moved the PR to a new branch: feature/plot-axis-rhs