Python Forum
Latex spacing question - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Latex spacing question (/thread-25375.html)



Latex spacing question - StillAnotherDave - Mar-28-2020

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?