Symmetric_and_asymmetric_waveforms.svg
Size of this PNG preview of this SVG file:
575 × 450 pixels
.
Other resolutions:
307 × 240 pixels
|
613 × 480 pixels
|
981 × 768 pixels
|
1,280 × 1,002 pixels
|
2,560 × 2,003 pixels
.
Summary
Description Symmetric and asymmetric waveforms.svg |
English:
Symmetric and asymmetric periodic waveforms. The red is symmetric and green is asymmetric. The red contains odd harmonics while the green contains even harmonics.
Red is: Green is:
Español:
Ondas simétrica y asimétrica. La curva roja es simétrica, mientras la verde es asimétrica. La curva roja contiene armónicos impares mientras la roja contiene armónicos pares.
|
Date | |
Source | Own work |
Author | Nicoguaro |
SVG development
InfoField
|
This plot was created with
Matplotlib
.
|
Source code
InfoField
|
Python codefrom numpy import linspace, cos, pi
import matplotlib.pyplot as plt
plt.style.use("seaborn-white")
red = "#e41a1c"
green = "#4daf4a"
t = linspace(0, 4*pi, 400)
y1 = cos(t) + cos(3*t + 1) + 0.2*cos(7*t + 5)
y2 = cos(t) + cos(2*t + 1) + 0.2*cos(6*t + 5)
fig = plt.figure()
plt.subplots_adjust(hspace=0.001)
ax1 = plt.subplot(2, 1, 1)
plt.plot(t/pi, y1, lw=2, color=red)
plt.plot(t/pi, -y1, lw=2, color=red, alpha=0.3)
plt.grid(b=True)
plt.yticks([-2.5, -1.25, 0, 1.25, 2.5], [])
plt.ylim(-2.5, 2.5)
plt.subplot(2, 1, 2, sharex=ax1)
plt.plot(t/pi, y2, lw=2, color=green)
plt.plot(t/pi, -y2, lw=2, color=green, alpha=0.3)
plt.grid(b=True)
plt.xticks([0, 1, 2, 3, 4], [])
plt.yticks([-2.5, -1.25, 0, 1.25, 2.5], [])
plt.ylim(-2.5, 2.5)
plt.savefig("Symmetric_and_asymmetric_waveforms.svg", bbox_inches="tight")
plt.show()
|
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the
Creative Commons
Attribution 4.0 International
license.
-
You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
-
Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.