Python Printing Alpha Beta Theta Symbols Want Able Put Alpha Beta Theta Symbol Graph Using Q37066251

#python, printing alpha beta and theta symbols

# i want to be able to put an alpha beta and theta symbol inthis graph using python
import numpy as np
import matplotlib.pyplot as plt

a = np.linspace(0,50,50)
b=[]
for i in a:
b.append(np.sin(i))

plt.plot(a,b)
####################################
####    problem is just below    #####
####################################
plt.xlabel(‘$Theta$ (lol)’)
plt.ylabel(‘$Alpha$ (lol)’)
plt.title(‘$Beta$ (lol)’)

plt.show()


Solution


Please let me know if you require any further assistance.

You have the right idea and we can put almost any mathematicalsymbols in python using this method->

                     r’$theta$’                       # Use the ‘r’ tag and put any mathematical expressioninside the ‘$’ tags. use ” backward slash before the name of anysymbol.

So your final solution will be like this

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.