我的数据文件是一组围绕轴原点的(x,y,z)点.它们代表一种措施失败的点.这些要点在此链接中.
Gnuplot可以绘制它们,
set encoding iso_8859_1
set term postscript eps enhanced color size 4.7in,4in
set xlabel "X"
set ylabel "Y"
set zlabel "Z"
set output "test_gp.eps"
set style line 1 lc rgb '#0060ad' pt 7 ps 0.5 lt 1 lw 0.5 # --- blue
set style fill transparent solid 0.15 noborder
splot "data.dat" u 1:2:3 w p ls 1 title "P_{error}"
Run Code Online (Sandbox Code Playgroud)
由此产生的情节
问题是该图未显示更可能发生错误的位置.如果可能的话,我想展示点密度的变化.
我不知道是否可以改变点的颜色或给它们透明度,并尝试用最密集的点来表示位置.
如果3D点的密度的表示是不可能的,另一种方式可以是,使点的投影密度在三个平面(X = 0,Y,Z),(X,Y = 0,Z),( X,Y,Z = 0).
问候
编辑:
我可以用不同的颜色绘制我的实验的success(0)和error(1)点位置.此 …
接下来的代码绘制了三个子图。
from ipywidgets import widgets
from IPython.display import display
import matplotlib.pyplot as plt
import numpy as np
%matplotlib notebook
fig, (ax1, ax2,ax3) = plt.subplots(nrows=3, figsize=(10,9))
line1, = ax1.semilogx([],[], label='Multipath')
hline1 = ax1.axhline(y = 0, linewidth=1.2, color='black',ls='--')
text1 = ax1.text(0, 0, "T Threshold",
verticalalignment='top', horizontalalignment='left',
transform=ax1.get_yaxis_transform(),
color='brown', fontsize=10)
#ax1.set_xlabel('Separation Distance, r (m)')
ax1.set_ylabel('Received Power, $P_t$ (dBm)')
ax1.grid(True,which="both",ls=":")
ax1.legend()
line2, = ax2.semilogx([],[], label='Monostatic Link')
hline2 = ax2.axhline(y = 0, linewidth=1.2, color='black',ls='--')
text2 = ax2.text(0, 0, "R Threshold",
verticalalignment='top', horizontalalignment='left',
transform=ax2.get_yaxis_transform(),
color='brown', fontsize=10) …Run Code Online (Sandbox Code Playgroud) 我想用我的 Colab 笔记本的各个部分制作一个参考列表。笔记本保存在我的 Google Drive 中。
我正在尝试 HTML 和 Markdown 超链接,如果链接指向 HTTP URL,它们可以正常工作,但它不适用于笔记本中的内部部分。
例如,在文本单元格中,我设置了大纲:
1. [Section 1](#s1)
2. [Section 2](#s2)
Run Code Online (Sandbox Code Playgroud)
并在目的地部分:
<a id='s1'></a>
#Section 1
.....
<a id='s2'></a>
#Section 2
Run Code Online (Sandbox Code Playgroud)
大纲列表中的超链接显示为超链接,但是当我单击它或它不执行任何操作时,它会在浏览器中打开一个新选项卡并显示错误消息:
Colab 使用 Markdown 部分和子部分创建自己的内容列表,但无法从一个部分到另一部分的内部链接。