I have a presentation in beamer with several slides showing a graph with a coordinate system. I want the graph to be (more or less) centered on the slide, with the origin of the coordinate system in the same place. The issue is that I have different labels to the left of the coordinate system, so simple centering doesn't work.
Minimal working example:
\documentclass[11pt,usenames,dvipsnames]{beamer}
\usetheme{Boadilla}
\usepackage{etex}
\usepackage{color}
\usepackage{amsmath,amssymb}
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage{tikz}
\beamertemplatenavigationsymbolsempty %gets rid of navigation at bottom of each slide
\begin{document}
\frame{
\frametitle{no tax}
\begin{center}
\begin{tikzpicture}[scale=1.3]
\draw[->, thick] (-0.2,0) -- (4.2,0) node[right] {$x$}; %x-axis
\draw[->, thick] (0,-0.2) -- (0,4.2) node[above] {$y$}; %y-axis
\draw[thick] (0,3.5) node[left=-1pt] {$\frac{I}{p_y}$} -- (3.5,0) node[below=-1pt] {$\frac{I}{p_x}$}; %BC
\node (v3) at (1.65,1.85) {} ;
\fill (1.65,1.85) circle[radius=1.5pt] node[above right=-1pt] {A};
\draw[thick] plot[smooth, tension=.7] coordinates {(0.85,4) (1,3) (v3) (3,1.15) (4,0.9) }; %indifference curve
\end{tikzpicture}
\end{center}
}
\frame{
\frametitle{Tax on $y$}
\begin{center}
\begin{tikzpicture}[scale=1.3]
\draw[->, thick] (-0.2,0) -- (4.2,0) node[right] {$x$}; %x-axis
\draw[->, thick] (0,-0.2) -- (0,4.2) node[above] {$y$}; %y-axis
\draw[thick] (0,3.5) node[left=-1pt] {$\frac{I}{p_y}$} -- (3.5,0) node[below=-1pt] {$\frac{I}{p_x}$}; %BC
\node (v3) at (1.65,1.85) {} ;
\fill (1.65,1.85) circle[radius=1.5pt] node[above right=-1pt] {A};
\draw[thick] plot[smooth, tension=.7] coordinates {(0.85,4) (1,3) (v3) (3,1.15) (4,0.9) };
\draw[thick] (0,2) node[left=-1pt] {$\frac{I}{(1+t_y)p_y}$} -- (3.5,0) node[below=-1pt] {$\frac{I}{p_x}$}; %BC
\fill (2,0.85) circle[radius=1.5pt] node[below left =-1pt] {B};
\draw[thick] plot[smooth, tension=.7] coordinates {(0.5,2.75) (1,1.75) (1.95,0.9) (2.95,0.5) (3.85,0.4) };
\end{tikzpicture}
\end{center}
}
\end{document}
Thanks for your help!


shift={(current page.(5,5))}) but that doesn't work. – Dominika May 06 '16 at 08:32