From 43ed59781e91840fbd3216afcd52084de65ecbda Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Mon, 19 Mar 2018 23:19:18 -0500 Subject: 2018-03-10 23:19 --- processing/chapter.tex | 27 +++++++++++++++++++++++++++ processing/quick1D 000.png | Bin 0 -> 141757 bytes processing/quick1D.py | 11 +++++++++++ processing/quick2D 000.png | Bin 0 -> 104884 bytes processing/quick2D.py | 11 +++++++++++ 5 files changed, 49 insertions(+) create mode 100644 processing/quick1D 000.png create mode 100644 processing/quick1D.py create mode 100644 processing/quick2D 000.png create mode 100644 processing/quick2D.py (limited to 'processing') 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 Binary files /dev/null and b/processing/quick1D 000.png 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 Binary files /dev/null and b/processing/quick2D 000.png 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') -- cgit v1.2.3