Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Latex spacing question
#1
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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  A loop for autocompile LaTeX file takes high CPU meknowsnothing 1 927 Jun-25-2022, 07:52 AM
Last Post: Gribouillis
  New to python and need help with spacing pmorgan39339 12 3,963 Sep-12-2021, 12:28 PM
Last Post: deanhystad
  nbconvert Jupyter to LaTeX ross1993hall 3 2,730 Jul-13-2020, 09:11 AM
Last Post: ross1993hall

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020