Writing a backend -- the pyplot interface
This page assumes general understanding of the information in the
Backends page, and is instead intended as reference for
third-party backend implementers. It also only deals with the interaction
between backends and pyplot, not with the rendering side, which is described
in backend_template.
There are two APIs for defining backends: a new canvas-based API (introduced in Matplotlib 3.6), and an older function-based API. The new API is simpler to implement because many methods can be inherited from "parent backends". It is recommended if back-compatibility for Matplotlib < 3.6 is not a concern. However, the old API remains supported.
Fundamentally, a backend module needs to provide information to , so
that