When using the bezier library, the Curve.plot() function returns an AxesSubplot object
nodes1 = np.array([[0.0, 0.0],[0.625, .75], [1.0, 1.0]])
curve1 = bezier.Curve(nodes1, degree=2)
ax = curve1.plot(num_pts=256)
print ax
returns an
AxesSubplot(0.125,0.11;0.775x0.77)
I know the typical way of creating a subplot is with
fig = pyplot.figure()
ax = fig.add_subplot(111)
but I can't find any documentation on adding an already created subplot to a figure.
I can display the subplot with plt.show() but can't access the figure. If I try to create a figure with plt.figure(), two different figures (in different windows) are displayed.