the scripting layer the scripting layer is the developer facing interface that simplifies the task of working with the other layers note that from the programmers point of viewthe scripting layer is represented by the pyplot module under the covers pyplot uses module-level objects to track the state of the datahandle drawing the graphs etc when imported pyplot selects either the default backend for the system or the one that has been configuredfor example via the matplotlib use(function it then calls setup(function thatcreates figure manager factory functionwhich when called will create new figure manager appropriate for the selected backendprepares the drawing function that should be used with the selected backendidentifies the callable function that integrates with the backend mainloop functionprovides the module for the selected backend the pyplot interface simplifies interactions with the internal wrappers by providing methods such as plot()pie()bar()title()savefig()draw(and figure(etc most of the examples presented in the next will use the functions provided by the pyplot module to create the required chartsthereby hiding the lower level details