What does this graph related code mean?

in the code for the multi-output model.


these lines are added in the function to plot predictions against truth value (or vice versa). I am not sure as to what do these lines of code do?

Also, what does this mean?


Great find. From what I read, The first 2, are different ways to make the axis equal in size. Documentation here: matplotlib.pyplot.axis — Matplotlib 3.5.1 documentation

The second set look redundant to me. They are simply setting the axis limits as the current axis limits. Documentation here: matplotlib.pyplot.xlim — Matplotlib 3.5.0 documentation

Please do let me know, if you find further insights.

1 Like