forked from gVallverdu/xpsplot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample2.py
21 lines (15 loc) · 794 Bytes
/
example2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python3
""" Stacking of several data files """
import xpsplot
# load data and set the global title
stuff = xpsplot.StackedXPSData("report1.TXT", "report2.TXT", "report2.TXT")
stuff.title = "C1s of a nice surface"
# set column names. If "", column name is keep unchanged
stuff.set_all_column_names("", "", "carb", "", "", "tata", "toto", "titi", "tutu")
# substract background data
stuff.substract_bg()
# save the plot
stuff.save_plot("stack.png", # picture name
columns=["Exp", "carb", "titi", "tutu", "envelope"], # column to plot
fill=True, # fill component
pos=[284.5, 290.9, 286.5]) # vertical line positions