# 菜鸟 深 学 的 进程 路 ## day1

legend = plt.legend(loc=‘upper center’, shadow=True)
frame = legend.get_frame()
frame.set_facecolor(‘0.90’)

The last function sets the transparency. When it is 0, it is completely transparent.

% matplotlib inline is a magic function (Magic Functions). The official definition is: IPython has a set of pre-defined so-called magic functions (Magic Functions), you can access them through the syntax of the command line.
% matplotlib inline
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace (0,10,100)
y_1 = x ** 3 + 10
plt.plot (x, y_1)
# Due to the existence of% matplotlib inline , After entering plt.plot (x, y_1), no need to enter plt.show (), the image will be displayed automatically

Original link: https://blog.csdn.net/Code_Mart/article/details/82385293

Published 31 original articles · praised 0 · visits 691

Guess you like

Origin blog.csdn.net/ballzy/article/details/105013618