Skip to content

Commit 9b6f9b4

Browse files
authored
diagram-generator: Fix typos in documentation (#228)
1 parent 04e2d66 commit 9b6f9b4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

diagram-generator/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ final image data in a temporary file with the correct format. In case you use
161161
matplotlib for a diagram, add the following line to do so:
162162

163163
```python
164-
plt.savefig("$DESTINATION$", dpi=300, fomat="$FORMAT$")
164+
plt.savefig("$DESTINATION$", dpi=300, format="$FORMAT$")
165165
```
166166

167167
The placeholder `$FORMAT$` gets replace by the necessary format. Most of the
@@ -202,7 +202,7 @@ cxy, f = axs[1].cohere(s1, s2, 256, 1. / dt)
202202
axs[1].set_ylabel('coherence')
203203
204204
fig.tight_layout()
205-
plt.savefig("$DESTINATION$", dpi=300, fomat="$FORMAT$")
205+
plt.savefig("$DESTINATION$", dpi=300, format="$FORMAT$")
206206
```
207207
~~~~~~~~~~~~~~~~
208208

diagram-generator/sample.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ final image data in a temporary file with the correct format. In case you use
155155
matplotlib for a diagram, add the following line to do so:
156156

157157
```python
158-
plt.savefig("$DESTINATION$", dpi=300, fomat="$FORMAT$")
158+
plt.savefig("$DESTINATION$", dpi=300, format="$FORMAT$")
159159
```
160160

161161
The placeholder `$FORMAT$` gets replace by the necessary format. Most of the
@@ -195,7 +195,7 @@ cxy, f = axs[1].cohere(s1, s2, 256, 1. / dt)
195195
axs[1].set_ylabel('coherence')
196196
197197
fig.tight_layout()
198-
plt.savefig("$DESTINATION$", dpi=300, fomat="$FORMAT$")
198+
plt.savefig("$DESTINATION$", dpi=300, format="$FORMAT$")
199199
```
200200

201201
Precondition to use Python is a Python environment which contains all

0 commit comments

Comments
 (0)