[Tex/LaTex] Add pdf Figure with no frame

graphics

I am adding a pdf figure in my text using the following code

\begin{figure}[H]
    \centering
    \includegraphics[width=.6\textwidth]{image.pdf}
    \caption{blablabla.}
    \label{123}
\end{figure}

In this way the figure has a black frame around.
How to get rid of the frame?
Basically I am looking for something that does the opposite of \fbox{\includegraphics...}

The figure is an Excel diagram that was saved as a pdf image.
This is what I get:
123

Best Answer

Your code does not add a border around the figure. The figure it self probably has a black border around it. Try cropping the figure using the following code:

\begin{figure}[htbp]
\begin{center}
    \includegraphics[trim=left bottom right top, clip]{file}
\caption{default}
\label{default}
\end{center}
\end{figure}

To cut a little of your figure, you could adjust your code as follows:

\begin{figure}[H]
    \centering
    \includegraphics[width=.6\textwidthtrim=.01cm .01cm .01cm .01cm, clip]{image.pdf}
    \caption{blablabla.}
    \label{123}
\end{figure}
Related Question