ETH QDLED项目使用的标准功能。
fGQLED的Python项目详细描述
读卡器:
Function which reads out different files.
参数
Takes everything in **kwargs.
- “filename”:文件名+路径。必要的。[字符串或字符]
- “delimiter”:定界的输入。例如,“,”,“\t”或其他类型。标准是''。[单个字符]
- “allowedchars”:为行中的第一个字符设置允许的字符。如果行以前缀或数字开头,则可以使用。标准是数字0-10。[列表]
- “skiplines”:文件中要跳过的行数。如果文本文档以包含允许字符但不包含数据的行开头,则此选项非常有用。[int]
- “flatten”:检查结果数组中每行的参数数是否不同。选择应该通过的线的长度(所有其他的都不会)。[int]
- “datatype”:读取文件的数据类型。复数“,”浮点“
输出
File is read and returned as an array of values.
First index is line number and second index is the position on line.
颜色
Function for colors
参数
Takes Literals as arguments
- n:cmap点数
- cmap_name:颜色映射的名称
输出
Returns colormaps in array of RGB colors. First index is the color, and the second index selects the spectral component in R, G, B, alpha
图函数
Functions to format the figure.
参数
Takes literals as arguments
-
AX:AX:图形的轴要成形。必要的
- 投影:“二维”、“三维”或“等高线”绘图。标准:“2d”[字符串或字符]
- 标签:带标签的字典。字典的键:“xlabel”、“ylabel”、“zlabel”。如果其中一个标签未设置,则将设置为空。标准:{'xlabel':'','ylabel':'','zlabel':'}[dict]
- FUNTHSIZE:轴标签的字体大小。标准:14[int]
- ticksize:刻度标签的字体大小。标准:14[int]
- TickSeparationX:设置X刻度之间的间距。例如,2将选择每秒钟标记一次。标准:2[int]
- TickSeparationy:设置Y刻度之间的间距。例如,2将选择每秒钟标记一次。标准:2[int]
- TickOffsetX:沿X方向偏移刻度选择。标准:0[int,in 0 to ticksepartionx]
- tickOffsety:沿Y方向偏移刻度选择。标准值:0[int,in 0 to ticksparationy]
输出
Axis is processed and returned.
绘图仪
Function for Plotting.
参数
Takes kwargs as arguments
- “sweeptype”:“1d”:只有一个x和y,“multiple”:覆盖多个x和y元组,“2d”:绘制x、y和z的轮廓图
- 'scale':'lin'或'log'
- “constraint”:限制轴的参数,字典。
- 'bool':false或true:禁用或启用函数
XimLimmin/max:x轴的最小/最大值。[int,float]