How to display multiplication symbol (dot) on the axis label in matplotlib?

Viewed 23

I wanted to display "A·B" on x-axis label (showing it with dot, meaning that A * B), but failed to search.

Can anyone give advice with it?

Thank you.

1 Answers

Maybe you can try something like this :

import matplotlib.pyplot as plt
plt.plot([1, 2, 3], [1, 2, 3])
plt.xlabel(r'$A \cdot  B$')
Related