Probably the starting point would be to find the equations that made the chart, rather than try reproducing equations from the chart.
In general, if you are trying to learn something it is worthwhile to implement this yourself, not to implement every low level detail, but use the best tools available.