你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 04:56:51 +08:00
Adjusted plotting scales for FFTs.
这个提交包含在:
@@ -23,6 +23,7 @@ import matplotlib.pyplot as plt
|
|||||||
import matplotlib.gridspec as gridspec
|
import matplotlib.gridspec as gridspec
|
||||||
|
|
||||||
from gprMax.exceptions import CmdInputError
|
from gprMax.exceptions import CmdInputError
|
||||||
|
from gprMax.receivers import Rx
|
||||||
|
|
||||||
"""Plots electric and magnetic fields and currents from all receiver points in the given output file. Each receiver point is plotted in a new figure window."""
|
"""Plots electric and magnetic fields and currents from all receiver points in the given output file. Each receiver point is plotted in a new figure window."""
|
||||||
|
|
||||||
@@ -72,6 +73,8 @@ for rx in range(1, nrx + 1):
|
|||||||
|
|
||||||
# Set plotting range to -60dB from maximum power
|
# Set plotting range to -60dB from maximum power
|
||||||
pltrange = np.where((np.amax(power[1::]) - power[1::]) > 60)[0][0] + 1
|
pltrange = np.where((np.amax(power[1::]) - power[1::]) > 60)[0][0] + 1
|
||||||
|
# To a maximum frequency
|
||||||
|
#pltrange = np.where(freqs > 2e9)[0][0]
|
||||||
pltrange = np.s_[0:pltrange]
|
pltrange = np.s_[0:pltrange]
|
||||||
|
|
||||||
# Plot time history of output component
|
# Plot time history of output component
|
||||||
|
@@ -83,9 +83,9 @@ s11 = 20 * np.log10(s11)
|
|||||||
|
|
||||||
# Set plotting range
|
# Set plotting range
|
||||||
# To a certain drop from maximum power
|
# To a certain drop from maximum power
|
||||||
#pltrange = np.where((np.amax(Vincp) - Vincp) > 30)[0][0] + 1
|
pltrange = np.where((np.amax(Vincp[1::]) - Vincp[1::]) > 60)[0][0] + 1
|
||||||
# To a maximum frequency
|
# To a maximum frequency
|
||||||
pltrange = np.where(freqs > 2e9)[0][0]
|
#pltrange = np.where(freqs > 2e9)[0][0]
|
||||||
pltrange = np.s_[1:pltrange]
|
pltrange = np.s_[1:pltrange]
|
||||||
|
|
||||||
# Figure 1
|
# Figure 1
|
||||||
|
在新工单中引用
屏蔽一个用户