![]() ![]() You used the stateful API (if you're doing anything more than a few lines, and especially if you have multiple plots, the object-oriented methods above make life easier because you can refer to specific figures, plot on certain axes, and customize either) plt.plot(.) You created a figure, then axis/es later fig = plt.figure()Īx = fig.add_subplot(1, 1, 1) # nrows, ncols, index You created a figure and axis/es together fig, ax = plt.subplots(nrows=1, ncols=1) ![]() Use the set_facecolor(color) method of the axes object, which you've created one of the following ways: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |