Hello all,

I can create a figure
and get the corresponding axes/plots 

for examples:
1/
fig = Figure(figsize=(width, height), dpi=dpi)
ax = gif.add_subplot(111)

2/
fig, ax = plt.subplots()

but I would like to create my plot independently from the figure and assign it to a figure

I code I would like to do something like this

my_ax = Axes(...)
my_ax.plot(x,y)


ax = my_ax

or

my_ax.set_figure(fig)

How can I create the axes/plot object independently from the figure?
Better yet, how can I assign an axe to a figure?
--
Emmanuel