diff options
Diffstat (limited to 'acquisition')
-rw-r--r-- | acquisition/quad.png | bin | 0 -> 132157 bytes | |||
-rw-r--r-- | acquisition/quad.py | 39 |
2 files changed, 39 insertions, 0 deletions
diff --git a/acquisition/quad.png b/acquisition/quad.png Binary files differnew file mode 100644 index 0000000..d400b97 --- /dev/null +++ b/acquisition/quad.png diff --git a/acquisition/quad.py b/acquisition/quad.py new file mode 100644 index 0000000..d6519e5 --- /dev/null +++ b/acquisition/quad.py @@ -0,0 +1,39 @@ +# --- 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(-1.1, 1.1) +ax.set_ylim(-1.1, 1.1) + +ax.arrow(-1, 0, 2, 0, lw=5, head_width=0.1) +ax.arrow(0, -1, 0, 2, lw=5, head_width=0.1) + + +es = {} +es['MR-CMDS'] = (-0.5, 0.5) + +for label, coordinates in es.items(): + ax.text(*coordinates, label, fontsize=20) + +# save +p = os.path.join(here, 'quad.png') +wt.artists.savefig(p) |