aboutsummaryrefslogtreecommitdiff
path: root/acquisition/quad.py
blob: ee5fab930afd816a301e842094e3bd9569e1ca3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# --- import --------------------------------------------------------------------------------------


import os

import matplotlib.pyplot as plt

import WrightTools as wt


# --- define --------------------------------------------------------------------------------------


here = os.path.abspath(os.path.dirname(__file__))


# --- workspace -----------------------------------------------------------------------------------


# create ax
fig, gs = wt.artists.create_figure(width='double')
ax = plt.subplot(gs[0, 0])

ax.set_xlim(0, 1.25)
ax.set_ylim(0, 1.25)


es = {}
es['MR-CMDS'] = (1, 0.3)
es['AFM'] = (0.5, 0.4)
es['GRAPES'] = (0.1, 1)
es['FTIR'] = (0.1, 0.1)
es['z-scan'] = (0.1, 0.2)
es['UV-VIS'] = (0.1, 0.3)
es['TRPL'] = (0.1, 0.4)
es['NMR'] = (0.1, 0.5)



for label, coordinates in es.items():
    ax.text(*coordinates, label, fontsize=20)

# decoration
xlabel = r'hardware complexity $\rightarrow$'
ylabel = r'measurement complexity $\rightarrow$'
wt.artists.set_ax_labels(xlabel=xlabel, ylabel=ylabel, xticks=False, yticks=False)

# save
p = os.path.join(here, 'quad.png')
wt.artists.savefig(p)