From a8a80c8f3c6a709d2eb56527a64df17740552eb5 Mon Sep 17 00:00:00 2001 From: Awin Huang Date: Sat, 13 May 2023 12:10:20 +0800 Subject: [PATCH] vault backup: 2023-05-13 12:10:20 --- .obsidian/workspace.json | 28 ++++++++++++++++++++-------- 04. Programming/Python/matplotlib.md | 7 ++++++- 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 15dc9e4..ff19bd1 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -34,9 +34,21 @@ }, "pinned": true } + }, + { + "id": "a4bd0e4c3fda45c7", + "type": "leaf", + "state": { + "type": "markdown", + "state": { + "file": "04. Programming/Python/matplotlib.md", + "mode": "source", + "source": true + } + } } ], - "currentTab": 1 + "currentTab": 2 } ], "direction": "vertical" @@ -65,7 +77,7 @@ "state": { "type": "search", "state": { - "query": "lapla", + "query": "matplot", "matchingCase": false, "explainSearch": false, "collapseAll": false, @@ -102,7 +114,7 @@ "state": { "type": "backlink", "state": { - "file": "00. Inbox/01. TODO.md", + "file": "00. Inbox/Habit Tracker.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -127,7 +139,7 @@ "state": { "type": "outline", "state": { - "file": "00. Inbox/01. TODO.md" + "file": "00. Inbox/Habit Tracker.md" } } }, @@ -178,11 +190,13 @@ "periodic-notes:Open today": false } }, - "active": "3b4577823cedf427", + "active": "f69acad103e7f817", "lastOpenFiles": [ + "00. Inbox/00. Inbox.md", + "04. Programming/Python/argparse.ArgumentParser.md", + "00. Inbox/01. TODO.md", "01. 個人/01. Daily/2023-05-11(週四).md", "01. 個人/01. Daily/2023-05-12(週五).md", - "00. Inbox/01. TODO.md", "00. Inbox/Habit Tracker.md", "00. Inbox/餐廳收集.md", "01. 個人/01. Daily/2023-05-10(週三).md", @@ -193,7 +207,6 @@ "05. 資料收集/讀書筆記/20230206 - 卡片盒筆記.md", "00. Inbox/想要的鏡頭/鏡頭比較列表.md", "00. Inbox/Router port forwarding.md", - "00. Inbox/00. Inbox.md", "attachments/Pasted image 20230504183452.png", "attachments/Pasted image 20230504183439.png", "02. 工作/01. Logitech/ME.md", @@ -207,7 +220,6 @@ "01. 個人/01. Daily/2023/2023年度目標.md", "01. 個人/01. Daily/2023/04/2023-04-16(週日).md", "00. Inbox/想要的鏡頭/變焦/TAMRON 17-70mm F2.8 DiIII-A VC.md", - "00. Inbox/想要的鏡頭/定焦/Fujifilm XF18mm F1.4 R LM WR.md", "00. Inbox/想要的鏡頭/變焦", "00. Inbox/想要的鏡頭/定焦", "00. Inbox/想要的鏡頭", diff --git a/04. Programming/Python/matplotlib.md b/04. Programming/Python/matplotlib.md index fd83c65..2f5b31e 100644 --- a/04. Programming/Python/matplotlib.md +++ b/04. Programming/Python/matplotlib.md @@ -51,4 +51,9 @@ ax.annotate( shrink=0.05), # ) ``` -官方說明:[matplotlib.axes.Axes.annotate — Matplotlib 3.7.1](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.annotate.html) \ No newline at end of file +官方說明:[matplotlib.axes.Axes.annotate — Matplotlib 3.7.1](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.annotate.html) + +## 在X軸上畫一個範圍 +```python +plt.gca().axvspan(startXPos, endXPos, alpha=0.2, color='red') +``` \ No newline at end of file