]> https://gitweb.dealii.org/ - release-papers.git/commitdiff
Inline a figure.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 28 May 2020 19:40:23 +0000 (13:40 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 28 May 2020 19:40:23 +0000 (13:40 -0600)
9.2/paper.tex

index 91e1e68dd8495bb66ebd984a1be955054e9d9802..5d11adbfbf4091beca538a7b36c8b04a4d354b7e 100644 (file)
@@ -16,6 +16,8 @@
 
 \usepackage{siunitx}
 
+\usepackage{floatflt}
+
 %\renewcommand{\baselinestretch}{2.0}
 
 \usepackage[normalem]{ulem}
@@ -858,15 +860,6 @@ to the matrix-vector product to increase data locality.
 \subsection{Python interfaces}
 \label{subsec:python}
 
-\begin{figure}
-\centering
-\includegraphics[scale=0.5]{python_mesh.png}
-\caption{\it The mesh generated by the Python code shown in the main
-  text. Cells are colored by material id.}
-\label{fig:pymesh}
-\end{figure}
-
-
 Initial support for Python has existed in \dealii{} since version
 9.0. The present release significantly extends the Python
 interface. Specifically, a large number of methods from classes such
@@ -898,6 +891,16 @@ triangulation.execute_coarsening_and_refinement()
 \end{python}
 The mesh that results from this code is shown in Fig.~\ref{fig:pymesh}.
 
+\begin{floatingfigure}[r]{0.3\textwidth}
+  \centering
+  \vspace*{-1.4cm}
+  \includegraphics[width=0.3\textwidth]{python_mesh.png}
+  \vspace*{-5mm}
+  \caption{\it The mesh generated by the Python code shown in the main
+    text. Cells are colored by material id.}
+  \vspace*{0.2cm}
+\label{fig:pymesh}
+\end{floatingfigure}
 All triangulations created from within Python are serial. However,
 once the mesh is designed, the triangulation can be serialized along
 with the auxiliary information about possible refinement, boundaries,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.