diff options
author | Blaise Thompson <blaise@untzag.com> | 2018-04-21 22:05:11 -0500 |
---|---|---|
committer | Blaise Thompson <blaise@untzag.com> | 2018-04-21 22:05:11 -0500 |
commit | ebe242230ebc80d6b3d90613f1dacd5d61c260f0 (patch) | |
tree | c928ac188280b3ef0012436cdd686b1f2d974851 /presentation | |
parent | 20fe6fadfec8ba0db5a22a409f5853ccc1d5ddd6 (diff) |
2018-04-21 22:05
Diffstat (limited to 'presentation')
-rw-r--r-- | presentation/SK_PhDThesis_fsTable-Overview.png | bin | 0 -> 43322 bytes | |||
-rw-r--r-- | presentation/SK_PhDThesis_fsTable-Overview_ORIGINAL.pdf | bin | 0 -> 9029 bytes | |||
-rw-r--r-- | presentation/hardware.PNG | bin | 0 -> 25420 bytes | |||
-rw-r--r-- | presentation/module.PNG | bin | 0 -> 24483 bytes | |||
-rw-r--r-- | presentation/singh_czech.png | bin | 0 -> 40341 bytes | |||
-rw-r--r-- | presentation/singh_czech.py | 62 |
6 files changed, 62 insertions, 0 deletions
diff --git a/presentation/SK_PhDThesis_fsTable-Overview.png b/presentation/SK_PhDThesis_fsTable-Overview.png Binary files differnew file mode 100644 index 0000000..dd3bb88 --- /dev/null +++ b/presentation/SK_PhDThesis_fsTable-Overview.png diff --git a/presentation/SK_PhDThesis_fsTable-Overview_ORIGINAL.pdf b/presentation/SK_PhDThesis_fsTable-Overview_ORIGINAL.pdf Binary files differnew file mode 100644 index 0000000..78f3cd0 --- /dev/null +++ b/presentation/SK_PhDThesis_fsTable-Overview_ORIGINAL.pdf diff --git a/presentation/hardware.PNG b/presentation/hardware.PNG Binary files differnew file mode 100644 index 0000000..4f7a5f9 --- /dev/null +++ b/presentation/hardware.PNG diff --git a/presentation/module.PNG b/presentation/module.PNG Binary files differnew file mode 100644 index 0000000..5a7ce05 --- /dev/null +++ b/presentation/module.PNG diff --git a/presentation/singh_czech.png b/presentation/singh_czech.png Binary files differnew file mode 100644 index 0000000..f231346 --- /dev/null +++ b/presentation/singh_czech.png diff --git a/presentation/singh_czech.py b/presentation/singh_czech.py new file mode 100644 index 0000000..398e22e --- /dev/null +++ b/presentation/singh_czech.py @@ -0,0 +1,62 @@ +"""Bandwidth comparison between Singh & Czech.""" + + +# --- import -------------------------------------------------------------------------------------- + + +import os + +import numpy as np + +import matplotlib.pyplot as plt +import matplotlib.patches as patches + +import WrightTools as wt +from WrightTools import datasets + + +# --- define -------------------------------------------------------------------------------------- + + +here = os.path.abspath(os.path.dirname(__file__)) + + +# --- workspace ----------------------------------------------------------------------------------- + + +fig, gs = wt.artists.create_figure(cols=[1, 'cbar']) +ax = plt.subplot(gs[0, 0]) + +# get data +ps = datasets.COLORS.v2p1_MoS2_TrEE_movie +data = wt.data.from_COLORS(ps) +data.convert('eV', convert_variables=True) +data.ai0.signed = False +data.ai0.clip(min=0, replace='value') +data = data.chop('w1=wm', 'w2', at={'d2': [-80, 'fs']})[0] + +# czech +ax.pcolor(data) + +# singh +edges = np.array([1660, 1610], dtype=np.float64) # meV +edges = wt.units.converter(edges, 'meV', 'eV') +corner = min(edges) +width = abs(edges[1] - edges[0]) +rectangle = patches.Rectangle((corner, corner), width, width, fc='m') +ax.add_patch(rectangle) + +# decoration +ax.set_xlim(corner, data.w1.max()) +ax.set_ylim(corner, data.w2.max()) +wt.artists.set_ax_labels(ax=ax, xlabel=data.w1__e__wm.label, ylabel=data.w2.label) +ax.grid() +wt.artists.diagonal_line() + +# colorbar +cax = plt.subplot(gs[0, -1]) +wt.artists.plot_colorbar(cax=cax, label='intensity') + +# save +p = os.path.join(here, 'singh_czech.png') +plt.savefig(p, bbox_inches='tight') |