|
254 | 254 | plt.figure(figsize=(7,3)) |
255 | 255 | plt.subplot(121) |
256 | 256 | plt.plot(t,s) |
| 257 | +plt.title('Time Domain Signal') |
257 | 258 | plt.ylim(np.min(s)*3, np.max(s)*3) |
258 | 259 | plt.xlabel('Time ($s$)') |
259 | 260 | plt.ylabel('Amplitude ($Unit$)') |
260 | 261 |
|
261 | 262 | plt.subplot(122) |
262 | 263 | plt.plot(X, 2.0*np.abs(Yhann[:N])/N) |
| 264 | +plt.title('Frequency Domain Signal') |
263 | 265 | plt.xlabel('Frequency ($Hz$)') |
264 | 266 | plt.ylabel('Amplitude ($Unit$)') |
265 | 267 |
|
266 | 268 | plt.annotate("FFT", |
267 | 269 | xy=(0.0, 0.1), xycoords='axes fraction', |
268 | 270 | xytext=(-0.8, 0.2), textcoords='axes fraction', |
269 | | - size=50, va="center", ha="center", |
| 271 | + size=30, va="center", ha="center", |
270 | 272 | arrowprops=dict(arrowstyle="simple", |
271 | 273 | connectionstyle="arc3,rad=0.2")) |
272 | 274 | plt.tight_layout() |
273 | 275 |
|
274 | | -plt.savefig('FFT.png',bbox_inches='tight', dpi=300) |
| 276 | +plt.savefig('FFT.png',bbox_inches='tight', dpi=150, transparent=True) |
275 | 277 |
|
276 | 278 | # <markdowncell> |
277 | 279 |
|
|
312 | 314 | df.Load.plot() |
313 | 315 | plt.title('Vertical Grid Load Germany 2013') |
314 | 316 | plt.ylabel('Power [$MW$]') |
| 317 | +plt.savefig('VerticalGridLoadGermany2013.png',bbox_inches='tight', dpi=150, transparent=True) |
315 | 318 |
|
316 | 319 | # <headingcell level=3> |
317 | 320 |
|
|
362 | 365 | plt.xlim(0, 180) |
363 | 366 | plt.ylim(0, 1500) |
364 | 367 | plt.xlabel('Period ($h$)') |
| 368 | +plt.savefig('VerticalGridLoadGermany2013-FFT.png',bbox_inches='tight', dpi=150, transparent=True) |
365 | 369 |
|
366 | 370 | # <markdowncell> |
367 | 371 |
|
|
0 commit comments