No there is no problem with coordinates. The problem is tikz uses a bounding box by default and with \begin{picture}(0,0)
you don't have a bounding box with environment picture
. In the first part, I use "picture" inside a tikz code and I use a bounding box for picture in other parts.
Remark : you have blank spaces misplaced in your code.
\documentclass{article}
\usepackage{color}
\usepackage{tikz}
\usepackage[english]{babel}
\begin{document}
\parindent=0pt
\begin{tikzpicture}
\draw[help lines,step=10pt](0,0) grid (200pt,150pt);
%\path (0pt,0pt);
\draw[red] (0pt, 50pt) -- (100pt, 140pt) -- (200pt, 50pt);
\node[inner sep=0pt,anchor=south west] at (0,0){%
\begin{picture}(200,140)%
\put(0,0){\line(1,0){200}}
\color{blue}\qbezier(0, 50) (100, 140)(200, 50)%
\end{picture}%
};
\end{tikzpicture}%
\begin{picture}(200,140)%
\put(0,0){\line(1,0){200}}
\color{blue}\qbezier(0, 50) (100, 140)(200, 50)%
\end{picture}
\begin{picture}(0,0)
\color{blue}\qbezier(0, 50) (100, 140)(200, 50)%
\end{picture}%
\begin{tikzpicture}
\path (0pt,0pt);
\draw[red]
(0pt, 50pt) -- (100pt, 140pt) -- (200pt, 50pt);
\end{tikzpicture}
\end{document}

update
version with a bounding box null for the tikzpicture
\documentclass{article}
\usepackage{color}
\usepackage{tikz}
\begin{document}
\parindent=0pt
\null\vspace{2cm}
\begin{picture}(0,0)
\color{blue}\qbezier(0, 50) (100, 140)(200, 50)%
\end{picture}%
\begin{tikzpicture}
\draw[use as bounding box] (0,0) rectangle (0,0);
\path (0pt,0pt);
\draw[red]
(0pt, 50pt) -- (100pt, 140pt) -- (200pt, 50pt);
\end{tikzpicture}%
\begin{picture}(0,0)
\color{green}\qbezier(0, 50) (100, -90)(200, 50)%
\end{picture}%
\end{document}
version with overlay
\documentclass{article}
\usepackage{color}
\usepackage{tikz}
\begin{document}
\parindent=0pt
\null\vspace{2cm}
\begin{picture}(0,0)
\color{blue}\qbezier(0, 50) (100, 140)(200, 50)%
\end{picture}%
\begin{tikzpicture}[overlay]
\path (0pt,0pt);
\draw[red] (0pt, 50pt) -- (100pt, 140pt) -- (200pt, 50pt);
\end{tikzpicture}%
\begin{picture}(0,0)
\color{green}\qbezier(0, 50) (100, -90)(200, 50)%
\end{picture}%
\end{document}
The result is the same with the two codes.
Try something like this, where figure-name
is the file name of your figure (without the file extension). If you have it in both PDF and EPS formats, then the compiler should automatically choose the right one.
\documentclass{beamer}
\usepackage{graphicx}
\mode<presentation>
\begin{document}
\frame
{
\begin{figure}
\centering
\includegraphics[width = 0.9\textwidth]{./figure-name}
\caption{Awesome figure}
\end{figure}
}
\end{document}
I've included the package graphicx
as it gives some useful options for figures. I've set the width of the figure to 90% of the text width. You can play around with that to get it to fit as you like. I've put the image in the figure
environment and given it a caption, but you don't have to. \centering
won't work outside the environment, but you could use instead:
\begin{center}
\includegraphics[width = 0.9\textwidth]{./figure-name}
\end{center}
If you don't care about centering, then you don't even need to bother with that. Hope that sorts things.
Best Answer
it works better with:
\node at (0,0) {\includegraphics[width=2cm]{your picture}};