from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt # Create a new figure fig = plt.figure() ax = fig.add_subplot(111, projection='3d') # Text content text = "phani ni gudda palakodtha" # Position of the text in 3D space (x, y, z) x, y, z = 0, 0, 0 # Add 3D text ax.text(x, y, z, text, color='blue', fontsize=20, zdir='x', fontweight='bold') # Set viewing angle ax.view_init(elev=30, azim=45) # Set limits for better visualization ax.set_xlim(-10, 10) ax.set_ylim(-10, 10) ax.set_zlim(-10, 10) # Remove axes for a cleaner look ax.axis('off') # Show the 3D text plt.show()