This is to make the installation of matplotlib an extra, i.e. using pip install pygfunction[plot].
Developers of tools that build upon pygfunction may want to implement their own solution to plotting.
This does not remove any functionality of pygfunction towards the calculation of g-functions.