Write between $$
to force matplotlib to interpret it.
import matplotlib.pyplot as plt
plt.plot(range(10), range(10), label = "Normal text $\it{Italics}$")
plt.legend()
plt.show()
Related Contents:
- How to put the legend outside the plot
- How to change legend size with matplotlib.pyplot
- Secondary axis with twinx(): how to add to legend?
- Scatter plot with different text at each data point
- Moving matplotlib legend outside of the axis makes it cutoff by the figure box
- matplotlib: colorbars and its text labels
- How to manually create a legend
- Show only certain items in legend Python Matplotlib
- How is order of items in matplotlib legend determined?
- Stop matplotlib repeating labels in legend
- matplotlib: 2 different legends on same graph
- How to change legend fontsize with matplotlib.pyplot
- How to edit a seaborn legend title and labels for figure-level functions
- Matplotlib scatter plot legend
- creating over 20 unique legend colors using matplotlib
- Move seaborn plot legend to a different position
- increase the linewidth of the legend lines in matplotlib
- Box around text in matplotlib
- How to set font size of Matplotlib axis Legend?
- Show only certain items in legend
- Adding a matplotlib legend
- Set legend symbol opacity
- Change main plot legend label text
- Remove line through marker in matplotlib legend
- Is it possible to add a string as a legend item
- How to change the legend edgecolor and facecolor
- automatically position text box in plot
- Reverse the order of a legend
- Matplotlib savefig with a legend outside the plot
- No handles with labels found to put in legend
- Manually set color of points in legend
- How to change the text color of font in legend?
- Unable to show legend in seaborn distplot
- How to increase/reduce the fontsize of x and y tick labels
- How to make IPython notebook matplotlib plot inline
- How do I plot in real-time in a while loop using matplotlib?
- Python & Matplotlib: Make 3D plot interactive in Jupyter Notebook
- Change x axes scale in matplotlib
- Is there a way to make a discontinuous axis in Matplotlib?
- How do I use matplotlib autopct?
- Matplotlib issue on OS X (“ImportError: cannot import name _thread”)
- \text does not work in a matplotlib label
- How to plot a wav file
- How to change figuresize using seaborn factorplot
- matplotlib.pyplot, preserve aspect ratio of the plot
- How to hide axes and gridlines
- How can I show figures separately?
- matplotlib RuntimeError: Python is not installed as a framework
- Row titles for matplotlib subplot
- How to show labels on matplotlib plots