Если вы хотите вставить небольшой сюжет внутри большего, вы можете использовать Axes, например здесь.
Проблема в том, что я не знаю, как сделать то же самое внутри подзаголовка.
У меня есть несколько подзаговоров, и я хотел бы построить небольшой сюжет внутри каждого подзаголовка. Пример кода будет примерно таким:
import numpy as np
import matplotlib.pyplot as plt
fig = plt.figure()
for i in range(4):
ax = fig.add_subplot(2,2,i)
ax.plot(np.arange(11),np.arange(11),'b')
#b = ax.axes([0.7,0.7,0.2,0.2])
#it gives an error, AxesSubplot is not callable
#b = plt.axes([0.7,0.7,0.2,0.2])
#plt.plot(np.arange(3),np.arange(3)+11,'g')
#it plots the small plot in the selected position of the whole figure, not inside the subplot
Любые идеи?
Спасибо заранее!