diff options
Diffstat (limited to 'processing')
-rw-r--r-- | processing/chapter.tex | 27 | ||||
-rw-r--r-- | processing/quick1D 000.png | bin | 0 -> 141757 bytes | |||
-rw-r--r-- | processing/quick1D.py | 11 | ||||
-rw-r--r-- | processing/quick2D 000.png | bin | 0 -> 104884 bytes | |||
-rw-r--r-- | processing/quick2D.py | 11 |
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 Binary files differnew file mode 100644 index 0000000..e6018ff --- /dev/null +++ b/processing/quick1D 000.png 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 Binary files differnew file mode 100644 index 0000000..94a8000 --- /dev/null +++ b/processing/quick2D 000.png 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') |