From 55863d6ea0315cd1a35c857231350768d4c61620 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (l)" <j.wuttke@fz-juelich.de> Date: Thu, 19 May 2016 19:51:56 +0200 Subject: [PATCH] sect. 2.2 on workflow ready --- doc/ps/GraphicPostprocessing.tex | 59 +++++++++++++++++++++++--------- 1 file changed, 43 insertions(+), 16 deletions(-) diff --git a/doc/ps/GraphicPostprocessing.tex b/doc/ps/GraphicPostprocessing.tex index bcbae986..32c3ac98 100644 --- a/doc/ps/GraphicPostprocessing.tex +++ b/doc/ps/GraphicPostprocessing.tex @@ -137,21 +137,47 @@ that is lacking all macro definitions. Such a file is useful when when several Frida-generated plots shall be combined into one figure (\cref{Sconcat}). -The workflow for generating - \bitem - \I rename file, move to appropriate folder - \I open with viewer (e.~g.\ \texttt{evince}) - \I in parallel, open with editor and modify - \I \texttt{bboxx -insert <filename>.ps} - \I \texttt{ps2pdf -dEPSCrop <filename>.ps <filename>.pdf} - \eitem - -Rasterization should be postponed to the latest possible moment, -which usually is screen display or printing. -For screen display, use a PostScript or PDF viewer like -\E{Evince} (under Linux) or the Adobe Acrobat reader. -For printing, let the printer or the printer driver -deal with the PostScript or PDF file. +I have found it advantageous for my concentration and productivity +to do keep data analysis and graphics postprocessing separated. +So during a data analysis session, I would generate a number +of numbered PostScript files in \url{~/gnew/}, +and take brief notes about graphics that are candidates for +later refinement and ultimately for a presentation or/and a publication. +Once the analysis is concluded with satisfactory, consistent results, +I would leave the Frida session open, +narrow down the graphics selection, +move the selected figures to an appropriate directory, +give them more explicit file names, +and then postprocess them. +At any moment, +I may need to go back to the Frida session to produce new, improved raw figures. + +To postprocess graphics, +it is advisable to open a text editor side-by-side with a postscript viewer. +Under Linux, \E{Evince} is currently a good choice. +I will update the displayed image as soon as the image file has changed. +So a simple ``save'' command in the editor suffices to see a modfied graphic. +As a fall-back solution, \E{ghostview} +is available for all platforms (Linux, MacOS, MS Windows). +When files are to modified in non-standard ways, +getting into the realm of PostScript \E{programming}, +it is helpful, if not mandatory, +to use ghostview because besides the graphic window it has a console window +where error messages appear, and debug messages can be printed. + +The so obtained embellished Frida graphics +should be preserved in PostScript format +so that they remain editable. +Secondary files in other image formats can be obtained by conversion programs, +as discussed in the next subsection. + +%============================================================================== +\subsection{Embedding graphics in documents and presentations}\label{Sembed} +%============================================================================== + +\texttt{bboxx -insert <filename>.ps} + +\texttt{ps2pdf -dEPSCrop <filename>.ps <filename>.pdf} Vector graphics can also be included in other documents. Different LaTeX flavors (legacy, pdflatex, xelatex) are all able to @@ -462,7 +488,8 @@ according to this syntax: \begin{quote} \texttt{\{$X*$ (string)\}} \end{quote} -where \texttt{$X*$} stands for 0,1,\ldots\ repeats of any of the following +where \texttt{$X*$} stands for 0,1,\ldots\ repeats of $X$. +The following lines show the two different forms of~$X$: \begin{quote} \texttt{(string) (string) operator}\\ \texttt{(string) macro} -- GitLab