aboutsummaryrefslogtreecommitdiff
path: root/processing
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2018-03-19 23:19:18 -0500
committerBlaise Thompson <blaise@untzag.com>2018-03-19 23:19:18 -0500
commit43ed59781e91840fbd3216afcd52084de65ecbda (patch)
treea949cd5ba8d94548871d649eec075bba2ac62ff3 /processing
parentac6bde61f90e6684b5b5b79286ebe58d08c09f9c (diff)
2018-03-10 23:19
Diffstat (limited to 'processing')
-rw-r--r--processing/chapter.tex27
-rw-r--r--processing/quick1D 000.pngbin0 -> 141757 bytes
-rw-r--r--processing/quick1D.py11
-rw-r--r--processing/quick2D 000.pngbin0 -> 104884 bytes
-rw-r--r--processing/quick2D.py11
5 files changed, 49 insertions, 0 deletions
diff --git a/processing/chapter.tex b/processing/chapter.tex
index 0e0e5cb..3225624 100644
--- a/processing/chapter.tex
+++ b/processing/chapter.tex
@@ -308,12 +308,39 @@ In the future, other libraries (e.g. mayavi), may be incorporated. %
\subsubsection{1D}
+\begin{dfigure}
+ \includegraphics[width=0.5\textwidth]{"processing/quick1D 000"}
+ \includepython{"processing/quick1D.py"}
+ \caption[CAPTION TODO]
+ {CAPTION TODO}
+\end{dfigure}
+
\subsubsection{2D}
+\begin{dfigure}
+ \includegraphics[width=0.5\textwidth]{"processing/quick2D 000"}
+ \includepython{"processing/quick2D.py"}
+ \caption[CAPTION TODO]
+ {CAPTION TODO}
+\end{dfigure}
+
\subsection{Specialty} % -------------------------------------------------------------------------
\subsection{Artists API} % -----------------------------------------------------------------------
+The artists sub-package offers a thin wrapper on the default matplotlib object-oriented figure
+creation API. %
+The wrapper allows WrightTools to add the following capabilities on top of matplotlib:
+\begin{ditemize}
+ \item More consistent multi-axes figure layout.
+ \item Ability to plot data objects directly.
+\end{ditemize}
+Each of these is meant to lower the barrier to plotting data. %
+Without going into every detail of matplotlib figure generation capabilities, this section
+introduces the unique strategy that the WrightTools wrapper takes. %
+
+% TODO: finish discussion
+
\subsection{Colormaps} % -------------------------------------------------------------------------
\subsection{Interpolation} % ---------------------------------------------------------------------
diff --git a/processing/quick1D 000.png b/processing/quick1D 000.png
new file mode 100644
index 0000000..e6018ff
--- /dev/null
+++ b/processing/quick1D 000.png
Binary files differ
diff --git a/processing/quick1D.py b/processing/quick1D.py
new file mode 100644
index 0000000..d90d082
--- /dev/null
+++ b/processing/quick1D.py
@@ -0,0 +1,11 @@
+import os
+import WrightTools as wt
+from WrightTools import datasets
+
+here = os.path.abspath(os.path.dirname(__file__))
+
+ps = datasets.KENT.LDS821_TRSF
+data = wt.data.from_KENT(ps, ignore=['d1', 'd2', 'wm'], verbose=False)
+
+wt.artists.quick1D(data, 'w1', at={'w2': [1520, 'wn']}, autosave=True,
+ save_directory=here, fname='quick1D')
diff --git a/processing/quick2D 000.png b/processing/quick2D 000.png
new file mode 100644
index 0000000..94a8000
--- /dev/null
+++ b/processing/quick2D 000.png
Binary files differ
diff --git a/processing/quick2D.py b/processing/quick2D.py
new file mode 100644
index 0000000..332dc75
--- /dev/null
+++ b/processing/quick2D.py
@@ -0,0 +1,11 @@
+import os
+import WrightTools as wt
+from WrightTools import datasets
+
+here = os.path.abspath(os.path.dirname(__file__))
+
+ps = datasets.KENT.LDS821_TRSF
+data = wt.data.from_KENT(ps, ignore=['d1', 'd2', 'wm'], verbose=False)
+
+wt.artists.apply_rcparams('publication')
+wt.artists.quick2D(data, autosave=True, save_directory=here, fname='quick2D')