<jupyter_start><jupyter_text>高等数学[原教程地址](http://www.labri.fr/perso/nrougier/coding/gallery/, "jupyter notebook")<jupyter_code>%matplotlib inline<jupyter_output><empty_output><jupyter_text>导入库<jupyter_code>import numpy as np
import matplotlib
import matplotlib.pyplot as plt<jupyter_output><empty_output><jupyter_text>01sin(x)  基本展示<jupyter_code># Data to be represented
X = np.linspace(-np.pi,+np.pi,256)
Y = np.sin(X)

# Actual plotting
fig = plt.figure(figsize=(8,6), dpi=72, facecolor="white")
axes = plt.subplot(111)
axes.plot(X,Y, color = 'blue', linewidth=2, linestyle="-")
axes.set_xlim(X.min(),X.max())

plt.show()<jupyter_output><empty_output><jupyter_text>01.2 sin(x)  去掉上／右边框<jupyter_code># Data to be represented
X = np.linspace(-np.pi, +np.pi, 256)
Y = np.sin(X)

# Actual plotting
fig = plt.figure(figsize=(8, 6), dpi=72, facecolor="white")
axes = plt.subplot(111)
axes.plot(X, Y, color='blue', linewidth=2, linestyle="-")
axes.set_xlim(X.min(), X.max())
axes.set_ylim(1.00 * Y.min(), 1.00 * Y.max()) # 切点位置

axes.spines['right'].set_color('none')  # 不显示
axes.spines['top'].set_color('none')
axes.xaxis.set_ticks_position('bottom')
axes.yaxis.set_ticks_position('left')

plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.18857142857142858, 'fraction_numerical': 0.026938775510204082, 'mean_word_length': 7.228187919463087, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '49497', 'license': 'Apache-2.0', 'n_tokens_mistral': 573, 'n_tokens_neox': 553, 'n_words': 76, 'path': '01Elementaryfunction/readme.ipynb', 'repo_name': 'hyhlinux/math', 'size': '1225'}