forked from gVallverdu/xpsplot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.py
More file actions
19 lines (14 loc) · 754 Bytes
/
example.py
File metadata and controls
19 lines (14 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python3
""" Simple plot of one XPS data file """
import xpsplot
report1 = xpsplot.XPSData.from_file("report1.TXT")
report1.set_column_name("Comp_1", "carb")
report1.set_column_name("Comp_3", "carbonyle")
report1.set_column_name("Comp_4", "tata")
report1.set_column_name("Comp_5", "titi")
report1.set_column_name("Comp_6", "toto")
report1.set_column_name("Comp_7", "tutu")
report1.save_plot("report1.png", # picture name
columns=["Exp", "carb", "titi", "tutu", "envelope"], # column to plot
fill=True, # fill component
fname=False) # do not write file name