用户工具

站点工具


atk:plt脚本与应用实践

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
atk:plt脚本与应用实践 [2018/04/12 09:44] – [进一步加工和导出] fermiatk:plt脚本与应用实践 [2018/04/14 10:09] (当前版本) – [数据线] fermi
行 1: 行 1:
-====== plt脚本与应用实践 ======+====== plt 作图脚本与应用实践 ====== 
 + 
 +**关键词:atkpython,能带,DOS,matplotlib**
  
 使用 QuantumATK 作图时可以在Virtual NanoLab上通过鼠标操作对作图进行定制并导出需要的图片格式。从2017版开始,用户可以将二维数据作图保存成plt脚本(实际为python语言脚本),这样做有很多好处: 使用 QuantumATK 作图时可以在Virtual NanoLab上通过鼠标操作对作图进行定制并导出需要的图片格式。从2017版开始,用户可以将二维数据作图保存成plt脚本(实际为python语言脚本),这样做有很多好处:
行 240: 行 242:
  
 |  '-' or 'solid'  |  solid line  | |  '-' or 'solid'  |  solid line  |
-|  '--' or 'dashed'  |  dashed line  |+|  '--'(双短线) or 'dashed'  |  dashed line  |
 |  '-.' or 'dashdot'  |  dash-dotted line  | |  '-.' or 'dashdot'  |  dash-dotted line  |
 |  ':' or 'dotted'  |  dotted line  | |  ':' or 'dotted'  |  dotted line  |
行 249: 行 251:
 === marker形状定义 === === marker形状定义 ===
  
-种类繁定义请参考:https://matplotlib.org/api/markers_api.html+marker description 
 +|  "."  |  point    |   
 +|  ","  |     pixel     
 +|  "o"  |     circle     
 +|  "v"  |     triangle_down     
 +|  "$^$"  |     triangle_up     
 +|  "<"  |     triangle_left     
 +|  ">"  |     triangle_right     
 +|  "1"  |     tri_down     
 +|  "2"  |     tri_up     
 +|  "3"  |     tri_left     
 +|  "4"  |     tri_right     
 +|  "8"  |     octagon     
 +|  "s"  |     square     
 +|  "p"  |     pentagon     
 +|  "P"  |     plus (filled)     
 +|  "*"  |     star     
 +|  "h"  |     hexagon1     
 +|  "H"  |     hexagon2     
 +|  "+"  |     plus     
 +|  "x"  |         
 +|  "X"  |     x (filled)    |   
 +|  "D"  |     diamond     
 +|  "d"  |     thin_diamond     
 +|  "$|$"  |   vline  |  
 +|  "_"  |     hline     
 +|  TICKLEFT      tickleft     
 +|  TICKRIGHT  |    tickright     
 +|  TICKUP           tickup     
 +|  TICKDOWN      tickdown     
 +|  CARETLEFT  |     caretleft (centered at tip)     
 +|  CARETRIGHT  |      caretright (centered at tip)     
 +|  CARETUP      caretup (centered at tip)     
 +|  CARETDOWN  |     caretdown (centered at tip)     
 +|  CARETLEFTBASE  |     caretleft (centered at base)     
 +|  CARETRIGHTBASE  |     caretright (centered at base)     
 +|  CARETUPBASE  |     caretup (centered at base)     
 +|  "None", " " or ""  |     nothing     
 + 
 +多定义请参考:[[https://matplotlib.org/api/markers_api.html]]
  
  
行 270: 行 311:
 ==== 进一步加工和导出 ==== ==== 进一步加工和导出 ====
  
-经过如上设置,plt脚本可能无法在VNL的2D plot editor里作图,但仍然可以用上述第二种方法在cmd命令行作图。例如,上述的能带作图示例如下:+经过如上设置,plt脚本可能无法在VNL的2D plot editor里作图,但仍然可以用上述第二种方法在cmd命令行作图。示例如下:
  
 {{ :atk:plt-final-result.png?500 |}} {{ :atk:plt-final-result.png?500 |}}
atk/plt脚本与应用实践.1523497497.txt.gz · 最后更改: 2018/04/12 09:44 由 fermi

© 2014-2022 费米科技(京ICP备14023855号