Skip to content

Commit 02a2188

Browse files
authored
Add files via upload
1 parent 1bc1b32 commit 02a2188

19 files changed

+75094
-0
lines changed

Book1_Ch10_Python_Codes/Bk1_Ch10_01.ipynb

+174
Large diffs are not rendered by default.

Book1_Ch10_Python_Codes/Bk1_Ch10_02.ipynb

+111
Large diffs are not rendered by default.

Book1_Ch10_Python_Codes/Bk1_Ch10_03.ipynb

+65
Large diffs are not rendered by default.

Book1_Ch10_Python_Codes/Bk1_Ch10_04.ipynb

+110
Large diffs are not rendered by default.
+365
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,365 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "2e56cefc-7e7b-4626-b564-058a0b589138",
6+
"metadata": {},
7+
"source": [
8+
"Chapter 10\n",
9+
"# 查看Matplotlib图片默认设置\n",
10+
"Book_1《编程不难》 | 鸢尾花书:从加减乘除到机器学习 "
11+
]
12+
},
13+
{
14+
"cell_type": "code",
15+
"execution_count": 1,
16+
"id": "97c1e357-4546-40f1-a475-7edbfe02ea88",
17+
"metadata": {},
18+
"outputs": [
19+
{
20+
"name": "stdout",
21+
"output_type": "stream",
22+
"text": [
23+
"_internal.classic_mode: False\n",
24+
"agg.path.chunksize: 0\n",
25+
"animation.avconv_args: []\n",
26+
"animation.avconv_path: avconv\n",
27+
"animation.bitrate: -1\n",
28+
"animation.codec: h264\n",
29+
"animation.convert_args: []\n",
30+
"animation.convert_path: convert\n",
31+
"animation.embed_limit: 20.0\n",
32+
"animation.ffmpeg_args: []\n",
33+
"animation.ffmpeg_path: ffmpeg\n",
34+
"animation.frame_format: png\n",
35+
"animation.html: none\n",
36+
"animation.html_args: []\n",
37+
"animation.writer: ffmpeg\n",
38+
"axes.autolimit_mode: data\n",
39+
"axes.axisbelow: line\n",
40+
"axes.edgecolor: black\n",
41+
"axes.facecolor: white\n",
42+
"axes.formatter.limits: [-5, 6]\n",
43+
"axes.formatter.min_exponent: 0\n",
44+
"axes.formatter.offset_threshold: 4\n",
45+
"axes.formatter.use_locale: False\n",
46+
"axes.formatter.use_mathtext: False\n",
47+
"axes.formatter.useoffset: True\n",
48+
"axes.grid: False\n",
49+
"axes.grid.axis: both\n",
50+
"axes.grid.which: major\n",
51+
"axes.labelcolor: black\n",
52+
"axes.labelpad: 4.0\n",
53+
"axes.labelsize: medium\n",
54+
"axes.labelweight: normal\n",
55+
"axes.linewidth: 0.8\n",
56+
"axes.prop_cycle: cycler('color', ['#1f77b4', '#ff7f0e', '#2ca02c', '#d62728', '#9467bd', '#8c564b', '#e377c2', '#7f7f7f', '#bcbd22', '#17becf'])\n",
57+
"axes.spines.bottom: True\n",
58+
"axes.spines.left: True\n",
59+
"axes.spines.right: True\n",
60+
"axes.spines.top: True\n",
61+
"axes.titlecolor: auto\n",
62+
"axes.titlelocation: center\n",
63+
"axes.titlepad: 6.0\n",
64+
"axes.titlesize: large\n",
65+
"axes.titleweight: normal\n",
66+
"axes.titley: None\n",
67+
"axes.unicode_minus: True\n",
68+
"axes.xmargin: 0.05\n",
69+
"axes.ymargin: 0.05\n",
70+
"axes.zmargin: 0.05\n",
71+
"axes3d.grid: True\n",
72+
"backend: module://matplotlib_inline.backend_inline\n",
73+
"backend_fallback: True\n",
74+
"boxplot.bootstrap: None\n",
75+
"boxplot.boxprops.color: black\n",
76+
"boxplot.boxprops.linestyle: -\n",
77+
"boxplot.boxprops.linewidth: 1.0\n",
78+
"boxplot.capprops.color: black\n",
79+
"boxplot.capprops.linestyle: -\n",
80+
"boxplot.capprops.linewidth: 1.0\n",
81+
"boxplot.flierprops.color: black\n",
82+
"boxplot.flierprops.linestyle: none\n",
83+
"boxplot.flierprops.linewidth: 1.0\n",
84+
"boxplot.flierprops.marker: o\n",
85+
"boxplot.flierprops.markeredgecolor: black\n",
86+
"boxplot.flierprops.markeredgewidth: 1.0\n",
87+
"boxplot.flierprops.markerfacecolor: none\n",
88+
"boxplot.flierprops.markersize: 6.0\n",
89+
"boxplot.meanline: False\n",
90+
"boxplot.meanprops.color: C2\n",
91+
"boxplot.meanprops.linestyle: --\n",
92+
"boxplot.meanprops.linewidth: 1.0\n",
93+
"boxplot.meanprops.marker: ^\n",
94+
"boxplot.meanprops.markeredgecolor: C2\n",
95+
"boxplot.meanprops.markerfacecolor: C2\n",
96+
"boxplot.meanprops.markersize: 6.0\n",
97+
"boxplot.medianprops.color: C1\n",
98+
"boxplot.medianprops.linestyle: -\n",
99+
"boxplot.medianprops.linewidth: 1.0\n",
100+
"boxplot.notch: False\n",
101+
"boxplot.patchartist: False\n",
102+
"boxplot.showbox: True\n",
103+
"boxplot.showcaps: True\n",
104+
"boxplot.showfliers: True\n",
105+
"boxplot.showmeans: False\n",
106+
"boxplot.vertical: True\n",
107+
"boxplot.whiskerprops.color: black\n",
108+
"boxplot.whiskerprops.linestyle: -\n",
109+
"boxplot.whiskerprops.linewidth: 1.0\n",
110+
"boxplot.whiskers: 1.5\n",
111+
"contour.corner_mask: True\n",
112+
"contour.linewidth: None\n",
113+
"contour.negative_linestyle: dashed\n",
114+
"date.autoformatter.day: %Y-%m-%d\n",
115+
"date.autoformatter.hour: %m-%d %H\n",
116+
"date.autoformatter.microsecond: %M:%S.%f\n",
117+
"date.autoformatter.minute: %d %H:%M\n",
118+
"date.autoformatter.month: %Y-%m\n",
119+
"date.autoformatter.second: %H:%M:%S\n",
120+
"date.autoformatter.year: %Y\n",
121+
"date.converter: None\n",
122+
"date.epoch: 1970-01-01T00:00:00\n",
123+
"date.interval_multiples: None\n",
124+
"docstring.hardcopy: False\n",
125+
"errorbar.capsize: 0.0\n",
126+
"figure.autolayout: False\n",
127+
"figure.constrained_layout.h_pad: 0.04167\n",
128+
"figure.constrained_layout.hspace: 0.02\n",
129+
"figure.constrained_layout.use: False\n",
130+
"figure.constrained_layout.w_pad: 0.04167\n",
131+
"figure.constrained_layout.wspace: 0.02\n",
132+
"figure.dpi: 100.0\n",
133+
"figure.edgecolor: white\n",
134+
"figure.facecolor: white\n",
135+
"figure.figsize: [6.4, 4.8]\n",
136+
"figure.frameon: True\n",
137+
"figure.max_open_warning: 20\n",
138+
"figure.raise_window: True\n",
139+
"figure.subplot.bottom: 0.11\n",
140+
"figure.subplot.hspace: 0.2\n",
141+
"figure.subplot.left: 0.125\n",
142+
"figure.subplot.right: 0.9\n",
143+
"figure.subplot.top: 0.88\n",
144+
"figure.subplot.wspace: 0.2\n",
145+
"figure.titlesize: large\n",
146+
"figure.titleweight: normal\n",
147+
"font.cursive: ['Apple Chancery', 'Textile', 'Zapf Chancery', 'Sand', 'Script MT', 'Felipa', 'Comic Neue', 'Comic Sans MS', 'cursive']\n",
148+
"font.family: ['sans-serif']\n",
149+
"font.fantasy: ['Chicago', 'Charcoal', 'Impact', 'Western', 'Humor Sans', 'xkcd', 'fantasy']\n",
150+
"font.monospace: ['DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Computer Modern Typewriter', 'Andale Mono', 'Nimbus Mono L', 'Courier New', 'Courier', 'Fixed', 'Terminal', 'monospace']\n",
151+
"font.sans-serif: ['DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', 'sans-serif']\n",
152+
"font.serif: ['DejaVu Serif', 'Bitstream Vera Serif', 'Computer Modern Roman', 'New Century Schoolbook', 'Century Schoolbook L', 'Utopia', 'ITC Bookman', 'Bookman', 'Nimbus Roman No9 L', 'Times New Roman', 'Times', 'Palatino', 'Charter', 'serif']\n",
153+
"font.size: 10.0\n",
154+
"font.stretch: normal\n",
155+
"font.style: normal\n",
156+
"font.variant: normal\n",
157+
"font.weight: normal\n",
158+
"grid.alpha: 1.0\n",
159+
"grid.color: #b0b0b0\n",
160+
"grid.linestyle: -\n",
161+
"grid.linewidth: 0.8\n",
162+
"hatch.color: black\n",
163+
"hatch.linewidth: 1.0\n",
164+
"hist.bins: 10\n",
165+
"image.aspect: equal\n",
166+
"image.cmap: viridis\n",
167+
"image.composite_image: True\n",
168+
"image.interpolation: antialiased\n",
169+
"image.lut: 256\n",
170+
"image.origin: upper\n",
171+
"image.resample: True\n",
172+
"interactive: True\n",
173+
"keymap.all_axes: ['a']\n",
174+
"keymap.back: ['left', 'c', 'backspace', 'MouseButton.BACK']\n",
175+
"keymap.copy: ['ctrl+c', 'cmd+c']\n",
176+
"keymap.forward: ['right', 'v', 'MouseButton.FORWARD']\n",
177+
"keymap.fullscreen: ['f', 'ctrl+f']\n",
178+
"keymap.grid: ['g']\n",
179+
"keymap.grid_minor: ['G']\n",
180+
"keymap.help: ['f1']\n",
181+
"keymap.home: ['h', 'r', 'home']\n",
182+
"keymap.pan: ['p']\n",
183+
"keymap.quit: ['ctrl+w', 'cmd+w', 'q']\n",
184+
"keymap.quit_all: []\n",
185+
"keymap.save: ['s', 'ctrl+s']\n",
186+
"keymap.xscale: ['k', 'L']\n",
187+
"keymap.yscale: ['l']\n",
188+
"keymap.zoom: ['o']\n",
189+
"legend.borderaxespad: 0.5\n",
190+
"legend.borderpad: 0.4\n",
191+
"legend.columnspacing: 2.0\n",
192+
"legend.edgecolor: 0.8\n",
193+
"legend.facecolor: inherit\n",
194+
"legend.fancybox: True\n",
195+
"legend.fontsize: medium\n",
196+
"legend.framealpha: 0.8\n",
197+
"legend.frameon: True\n",
198+
"legend.handleheight: 0.7\n",
199+
"legend.handlelength: 2.0\n",
200+
"legend.handletextpad: 0.8\n",
201+
"legend.labelspacing: 0.5\n",
202+
"legend.loc: best\n",
203+
"legend.markerscale: 1.0\n",
204+
"legend.numpoints: 1\n",
205+
"legend.scatterpoints: 1\n",
206+
"legend.shadow: False\n",
207+
"legend.title_fontsize: None\n",
208+
"lines.antialiased: True\n",
209+
"lines.color: C0\n",
210+
"lines.dash_capstyle: butt\n",
211+
"lines.dash_joinstyle: round\n",
212+
"lines.dashdot_pattern: [6.4, 1.6, 1.0, 1.6]\n",
213+
"lines.dashed_pattern: [3.7, 1.6]\n",
214+
"lines.dotted_pattern: [1.0, 1.65]\n",
215+
"lines.linestyle: -\n",
216+
"lines.linewidth: 1.5\n",
217+
"lines.marker: None\n",
218+
"lines.markeredgecolor: auto\n",
219+
"lines.markeredgewidth: 1.0\n",
220+
"lines.markerfacecolor: auto\n",
221+
"lines.markersize: 6.0\n",
222+
"lines.scale_dashes: True\n",
223+
"lines.solid_capstyle: projecting\n",
224+
"lines.solid_joinstyle: round\n",
225+
"markers.fillstyle: full\n",
226+
"mathtext.bf: sans:bold\n",
227+
"mathtext.cal: cursive\n",
228+
"mathtext.default: it\n",
229+
"mathtext.fallback: cm\n",
230+
"mathtext.fallback_to_cm: None\n",
231+
"mathtext.fontset: dejavusans\n",
232+
"mathtext.it: sans:italic\n",
233+
"mathtext.rm: sans\n",
234+
"mathtext.sf: sans\n",
235+
"mathtext.tt: monospace\n",
236+
"patch.antialiased: True\n",
237+
"patch.edgecolor: black\n",
238+
"patch.facecolor: C0\n",
239+
"patch.force_edgecolor: False\n",
240+
"patch.linewidth: 1.0\n",
241+
"path.effects: []\n",
242+
"path.simplify: True\n",
243+
"path.simplify_threshold: 0.111111111111\n",
244+
"path.sketch: None\n",
245+
"path.snap: True\n",
246+
"pcolor.shading: flat\n",
247+
"pcolormesh.snap: True\n",
248+
"pdf.compression: 6\n",
249+
"pdf.fonttype: 3\n",
250+
"pdf.inheritcolor: False\n",
251+
"pdf.use14corefonts: False\n",
252+
"pgf.preamble: \n",
253+
"pgf.rcfonts: True\n",
254+
"pgf.texsystem: xelatex\n",
255+
"polaraxes.grid: True\n",
256+
"ps.distiller.res: 6000\n",
257+
"ps.fonttype: 3\n",
258+
"ps.papersize: letter\n",
259+
"ps.useafm: False\n",
260+
"ps.usedistiller: None\n",
261+
"savefig.bbox: None\n",
262+
"savefig.directory: ~\n",
263+
"savefig.dpi: figure\n",
264+
"savefig.edgecolor: auto\n",
265+
"savefig.facecolor: auto\n",
266+
"savefig.format: png\n",
267+
"savefig.jpeg_quality: 95\n",
268+
"savefig.orientation: portrait\n",
269+
"savefig.pad_inches: 0.1\n",
270+
"savefig.transparent: False\n",
271+
"scatter.edgecolors: face\n",
272+
"scatter.marker: o\n",
273+
"svg.fonttype: path\n",
274+
"svg.hashsalt: None\n",
275+
"svg.image_inline: True\n",
276+
"text.antialiased: True\n",
277+
"text.color: black\n",
278+
"text.hinting: force_autohint\n",
279+
"text.hinting_factor: 8\n",
280+
"text.kerning_factor: 0\n",
281+
"text.latex.preamble: \n",
282+
"text.latex.preview: False\n",
283+
"text.usetex: False\n",
284+
"timezone: UTC\n",
285+
"tk.window_focus: False\n",
286+
"toolbar: toolbar2\n",
287+
"webagg.address: 127.0.0.1\n",
288+
"webagg.open_in_browser: True\n",
289+
"webagg.port: 8988\n",
290+
"webagg.port_retries: 50\n",
291+
"xaxis.labellocation: center\n",
292+
"xtick.alignment: center\n",
293+
"xtick.bottom: True\n",
294+
"xtick.color: black\n",
295+
"xtick.direction: out\n",
296+
"xtick.labelbottom: True\n",
297+
"xtick.labelcolor: inherit\n",
298+
"xtick.labelsize: medium\n",
299+
"xtick.labeltop: False\n",
300+
"xtick.major.bottom: True\n",
301+
"xtick.major.pad: 3.5\n",
302+
"xtick.major.size: 3.5\n",
303+
"xtick.major.top: True\n",
304+
"xtick.major.width: 0.8\n",
305+
"xtick.minor.bottom: True\n",
306+
"xtick.minor.pad: 3.4\n",
307+
"xtick.minor.size: 2.0\n",
308+
"xtick.minor.top: True\n",
309+
"xtick.minor.visible: False\n",
310+
"xtick.minor.width: 0.6\n",
311+
"xtick.top: False\n",
312+
"yaxis.labellocation: center\n",
313+
"ytick.alignment: center_baseline\n",
314+
"ytick.color: black\n",
315+
"ytick.direction: out\n",
316+
"ytick.labelcolor: inherit\n",
317+
"ytick.labelleft: True\n",
318+
"ytick.labelright: False\n",
319+
"ytick.labelsize: medium\n",
320+
"ytick.left: True\n",
321+
"ytick.major.left: True\n",
322+
"ytick.major.pad: 3.5\n",
323+
"ytick.major.right: True\n",
324+
"ytick.major.size: 3.5\n",
325+
"ytick.major.width: 0.8\n",
326+
"ytick.minor.left: True\n",
327+
"ytick.minor.pad: 3.4\n",
328+
"ytick.minor.right: True\n",
329+
"ytick.minor.size: 2.0\n",
330+
"ytick.minor.visible: False\n",
331+
"ytick.minor.width: 0.6\n",
332+
"ytick.right: False\n"
333+
]
334+
}
335+
],
336+
"source": [
337+
"import matplotlib.pyplot as plt\n",
338+
"p = plt.rcParams # 全局配置参数\n",
339+
"print(p)\n",
340+
"# plt.rcParams 配置参数的当前默认值"
341+
]
342+
}
343+
],
344+
"metadata": {
345+
"kernelspec": {
346+
"display_name": "Python 3 (ipykernel)",
347+
"language": "python",
348+
"name": "python3"
349+
},
350+
"language_info": {
351+
"codemirror_mode": {
352+
"name": "ipython",
353+
"version": 3
354+
},
355+
"file_extension": ".py",
356+
"mimetype": "text/x-python",
357+
"name": "python",
358+
"nbconvert_exporter": "python",
359+
"pygments_lexer": "ipython3",
360+
"version": "3.10.9"
361+
}
362+
},
363+
"nbformat": 4,
364+
"nbformat_minor": 5
365+
}

0 commit comments

Comments
 (0)