Hello,

I am programming using POO (object programming)

I cannot find a way to create a plot as an object

In concept, I would like to do something like

"""
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure

self.figure = Figure(figsize=(600,600), dpi=72, facecolor=(1,1,1), edgecolor=(0,0,0))
self.figureCanvas = FigureCanvas(self.figure)

for i in range(2):
    plots.append(create_axis())    <-- create plot object in a list


self.plots[1].xlabel = 'X1'
self.plots[2].xlabel = 'X2'

for plot in self.plots:
    self.figure.add_plots(plot)

self.figure.show()

self.plots[1].xlabel = 'XX1'

self.figure.updateDisplay()

"""

Is it possible?
If so, how?