Antonino Ingargiola edited Concepts.tex  almost 9 years ago

Commit id: c3a881502ed0e7b7baff871a20fa084d9ccfb07e

deletions | additions      

       

Additional plots can be easily created directly with matplotlib.  Usually By default in FRETBursts tutorials,  plots are displayed inline the notebook as static images  in order to speed-up batch processing. In this case matplotlib uses a non-interactive backend called \textit{inline}.   The user can choose to create interactive figures  by using an interactive backend, i.e. with  the notebook. However command \verb|\%matplotlib notebook| for interactive figures inside the browser, and \verb|\%matplotlib qt| for interactive figures in  a new window.  A  few plot functions such as \verb|timetrace| and \verb|hist2d_alex| have interactive features that can be enabled when using the QT4 backend that opens the plot in an external  window. It is possible to switch backend from inline to QT QT4  and vice versa by  using the ipython commands \verb|%matplotlib \verb|\%matplotlib  qt| and \verb|%matplotlib \verb|\%matplotlib  inline|. For As an  example, after switching to the QT4 backend the following command:  \begin{verbatim}  dplot(d, timetrace, scroll=True)  \end{verbatim}  opens will open  a new window with a timetrace plot and an horizontal scroll-bar for quick "scrolling" throughout the measurement.  Similarly, calling the \verb|hist2d_alex| function with the QT4 backend allows  selecting an area on the E-S histogram using the mouse. 

The values that identify the region are printed and can be copied an pasted as  argument for the burst selection function \verb|select_bursts.ES| (see  section~\ref{sec:burstsel}).  Note that