Python Forum

Full Version: Latex spacing question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,

I imagine this is a pretty simple question:

plt.xlabel('$mass (kg)$')
plt.ylabel('$angular displacement (rad)$')
why does the above code for axes labels not produce spaces between the words? The x axis label comes out as mass(kg) and the y axis as angulardisplacement(rad) with no spaces between words...

How do I correct this?