All know Visio is a tool for drawing flowcharts, but inserting latex may become blurred, and here's what I think is the best clarity.
First step: Save as PDF after drawing a Visio diagram, file-to-page setup and page size Select resize to fit the drawing, then publish to PDF, such as Pr1_visio.pdf
Step Two:
* If you want to insert into a floating window, you can directly use
\begin{figure}
\centering
\includegraphics[width=\textwidth]{pr1_visio.pdf}\\
\caption{fit}\label{}
\end{figure}
* If you want to insert into a non-floating area, you can use the following method, in order to be able to be used outside of figure \caption, can be added in the introductory section:
\makeatletter
\newcommand\figcaption{\def\ @captype {figure}\caption}
\newcommand\tabcaption{\def\ @captype {table}\caption}
\makeatother
Then just use the command below to
\begin{center}
\includegraphics[width=4cm,height=8cm]{pr1_visio.pdf}
\figcaption{System Clustering algorithm flowchart}\label{}
\end{center}