I have a document with TikZ figure are included like this:
\begin{figure}[ht!]
\centering
\begin{tikzpicture}
\draw (-1, 1) -- (1,1);
\end{tikzpicture}
\end{figure}
When I copy this code from the document to a beamerpresentation and compile it, the size of the picture seems to be adapted to fill the entire slide.
How can I change this such that the figure in the presentation looks the same as in my document?

beamer. Try to include your image in\begin{center} ... <your image > ... \end{center}– Zarko Oct 07 '15 at 22:33beamer?beamerinternally suppresses flotation, so one can usefigureandtablesafely with no flotation, just in case one wants a\caption(I know it's weird to have captions in presentations but it happens). What doesn't have any effect is using float positioning specifiers (such as[ht!]) since, as I mentioned, beamer suppresses flotation forfigureandtable. – Gonzalo Medina Oct 07 '15 at 23:52beamersupres floating. So, why than use them?To be honest, I use them in cases when I add captions (usulay without of caption text) to them (as you give an example). This depends on intention of presentation. – Zarko Oct 07 '15 at 23:59beamerarticlepackage to turn the presentation into anarticle; havingfigureandtablewith\captionin thebeamercode then simplifies the work when passing toarticlemode. – Gonzalo Medina Oct 08 '15 at 00:01beamerarticle, my problem have been oposite: how to make presentation from article or book :-) – Zarko Oct 08 '15 at 00:17