-1
plt.pie(size,labels=columns)
p=plt.gcf()
p.gca().add_artist(my_graph)
plt.show()

I don't understand this code. Can anyone explain me ?

dilayapici
  • 42
  • 2
  • 2
    Did you try the [docs](https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.gca.html)? – BigBen Oct 23 '20 at 13:03
  • 1
    See also [matplotlib Axes.plot() vs pyplot.plot()](https://stackoverflow.com/questions/43482191/matplotlib-axes-plot-vs-pyplot-plot) – JohanC Oct 23 '20 at 14:55

1 Answers1

0

matplotlib.pyplot.gcf()[source] Get the current figure.

If no current figure exists, a new one is created using figure(). click here

Aaj Kaal
  • 1,205
  • 1
  • 9
  • 8