0

I defined two figures (each with plots inside) such as:

    fig1 = plt.figure()
    fig2 = plt.figure()

and later on I want to combine them on one figure (same axis) the same way Mathemtica can do it. However, (show) does nothing. How can I do this?

    fig1 = plt.figure()
    plt.plot(np.sin(10*np.linspace(0,1,100)))
    fig2 = plt.figure()
    plt.plot(np.sin(20*np.linspace(0,1,100)))
    plt.show(fig1,fig2)

I am expecting the same output as I would `

figcombined = plt.figure()
    plt.plot(np.sin(10*np.linspace(0,1,100)))
    plt.plot(np.sin(20*np.linspace(0,1,100)))
    plt.show()

`

Aladdin
  • 41
  • 4

0 Answers0