本文整理汇总了Python中taref.plotter.api.Plotter.nplot方法的典型用法代码示例。如果您正苦于以下问题:Python Plotter.nplot方法的具体用法?Python Plotter.nplot怎么用?Python Plotter.nplot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类taref.plotter.api.Plotter
的用法示例。
在下文中一共展示了Plotter.nplot方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: scatter
# 需要导入模块: from taref.plotter.api import Plotter [as 别名]
# 或者: from taref.plotter.api.Plotter import nplot [as 别名]
pl=Plotter(name="pwr_sat", nrows=2, ncols=2)
onres=(20*log10(absolute(b.MagcomFilt[69, :, :])).transpose()-bg_A4(b.freq_axis[69]*1e9)).transpose()
pl, pf=colormesh(b.flux_axis, b.pwr-30-60, 10**(onres/20.0).transpose(),
ylabel="Power (dBm) ", xlabel=r"$\Phi/\Phi_0$",
auto_xlim=False, x_min=0.35, x_max=0.5,
auto_ylim=False, y_min=-30-90, y_max=10-90, nrows=2, ncols=2, nplot=1, pl=pl, pf_too=True, fig_width=fig_width, fig_height=fig_height)
ax=pl.axes
ax.set_yticks(linspace(-30.0-90, 10.0-90, 3))
ax.set_xticks(linspace(0.38, 0.48, 3))
#b.pwr, b.freq_axis[a.end_skip:-b.end_skip], 10**(onres/20.0), #absolute(a.MagcomFilt[a.end_skip:-a.end_skip, 635, :]),
# ylabel="Frequency (GHz)", xlabel=r"Power (dBm")#.show()
pl.nplot=2
onres=20*log10(absolute(b.MagcomFilt[69, 635, :]))-bg_A4(b.frequency[69])
offres=20*log10(absolute(b.MagcomFilt[69, 0, :]))-bg_A4(b.frequency[69])
scatter(b.pwr-30-60, absolute(onres-offres))
#scatter(b.pwr-30-60, 10**(absolute(onres-offres)/20.0))
scatter(b.pwr-30-60, absolute(10**(onres/20.0)-10**(offres/20.0)))
#scatter(b.pwr-30-60, absolute(10**(onres/20.0)))
pl_pwr_sat=scatter(b.pwr-30-60, absolute(10**(onres/20.0)-10**(offres/20.0)),
xlabel="Power (dBm)", ylabel=r"$|\Delta S_{21}|$", pl=pl,
auto_ylim=False, y_min=0.0, y_max=0.12, marker_size=10.0,
auto_xlim=False, x_min=-30-90, x_max=10-90)#.show()
ax=pl.axes