I recently found this: Desmos Graphing calculator. I tried to plot the equation $\theta=45$ but it gave me an error:
Sorry, you can't graph $\theta$ as a function of anything yet.

So I started thinking that how can I make it a functionn of $r$? I tried a lot but I couldn't do it. So please tell how can I make it a function of $r$?
As a workaround, you can convert to Cartesian coordinates. For example, if you want to plot $\theta = 45^\circ$, then you can instead plot: $$ y = \left( \tan \left(45^\circ \cdot \frac{\pi}{180^\circ} \right) \right)x $$ where we made sure to convert from degrees to radians.