matplotlib geostrophic wind plot I am working on an assignment that is teaching how to plot and label using matplotlib using Python. Science or math is not my background. I have been given the formula for calculating the geostrophic wind and we are to plot it (on the y-axis) versus the latitude on the x-axis.

I know how to plot give an x and a y. Beyond that, the formula is not making sense to me given my lack of background in the area.



Furthermore, there is a key to translate the symbols to the correct python code, but I don't know the English names to the symbols, making it very difficult.

For example, I am given 

r'$x^{10}$'
r'$R_^{final}$'
r'$alpha^{\eta}$' 


The first two are superscript and subscript. That I understand. But how this helps with the formula calculations I do not know. 

I am given the values to put into the formula as well. An explanation of the order of operations would help.
If,
g0=9.81 ms-­‐2;
ΔZ=60m;
Δn=2x10^5m;
and
f=2Ωsin(φ) 

My question is how do I put the values into the formula and then plot them in matplotlib? is it as easy as x and y?
Your answer was incorrect because the axes were flipped and it didn't plot the entire line.

This was the correct answer I was looking for.

import matplotlib.pyplot as plt 
import numpy as np

# define the parameters
g = -9.81 # m/s^2
dZ = 60 # m
dx = 2e5 # m
omega = 7.2921e-5 # rad/s
phi = np.linspace(10,90) # deg
f = 2 * omega * np.sin(np.radians(phi)) # coriolis frequency, s^-1

# compute geostrophic wind, x-component
u_g = -1. * g/f * dZ/dx

# plot phi vs V_g
fig, ax = plt.subplots()
ax.plot(phi, u_g, color='#FF33CC')
ax.set_xlabel('$\phi$')
ax.set_ylabel('$V_{g}$ (m $s^-1$)')
plt.title('Geostrophic Wind vs. Latitude')
plt.show()