This answer is an complement to Chris White's answer.
Fist of there is no explicit equations for the position of an object following a Kepler orbit as a function of time. However, when the initial conditions are known, the path the object will follow can be found, as well as the velocity, acceleration, ect. at any given position. This path can be described by the following equation:
$$
r=\frac{a(1-e^2)}{1+e\cos{\theta}}
$$
where $r$ is the distance between the (small) object and the focus of the orbit (which is equal to the position of the large fixed object or the center of mass of the two if the second object it not fixed), $a$ is the semi-major axis, $e$ is the eccentricity and $\theta$ is the true anomaly (the angle between the objects position, focus and the position of the object at closest approach/periapsis).
The semi-major axis and the eccentricity can be deduced from the initial conditions:
$$
a=\frac{\mu r}{2\mu-rv^2}
$$
$$
e=\sqrt{1+\frac{rv_{\theta}^2}{\mu}\left(\frac{rv^2}{\mu}-2\right)}
$$
where $\mu$ is the gravitational parameter of the large fixed object ($\mu=GM$), $v$ is the velocity of the object and $v_\theta$ is the tangential component of the velocity.
This tangential component of the velocity can be found by using some linear algebra (the resulting equivalent of the cross product in 2D):
$$
v_{\theta}=\frac{xv_y-yv_x}{\sqrt{x^2+y^2}}
$$
The position of the periapsis may be have any angle relative to the focus and the axis in which you represent positions. So you will have to offset/rotate the path you have found by a specific angle to match the initial conditions.
This offset angle of $\theta$, lets call it $\Delta\theta$, can be calculated as followed:
$$
\Delta\theta={\rm sign}\left(v_{\theta}v_r\right)\cos^{-1}\left(\frac{a(1-e^2)-\sqrt{x^2+y^2}}{e\sqrt{x^2+y^2}}\right)-{\rm atan2}\left(y,x\right)
$$
where the function ${\rm sign}(x)$ refers to whether $x$ is positive or negative $\left(\frac{x}{|x|}\right)$ and $v_r$ is the radial velocity, which can be found by:
$$
v_r=\frac{xv_x+yv_y}{\sqrt{x^2+y^2}}
$$
This offset angle is chosen such that the resulting path is defined by:
$$
x_{path}=r(\theta)\cos\left(\theta+\Delta\theta\right)
$$
$$
y_{path}=-r(\theta)\sin\left(\theta+\Delta\theta\right)
$$
I have one final note about choosing the range of $\theta$, since when $e\ge1$ then the path will no longer be an ellipse, but a parabola or a hyperbola, which extends to infinity. To avoid trying to draw this you can limit the range of $\theta$. For example by choosing a maximum radius, $r_{max}$. The range of $\theta$ will then be:
$$
\theta_{max}={\rm real}\left(\cos^{-1}\left(\frac{a(1-e^2)-r_{max}}{er_{max}}\right)\right)
$$
$$
\theta\in[-\theta_{max},\theta_{max}]
$$