1. Joon Ro
  2. Docs-Python

Commits

Joon Ro  committed 4e595c7

+ LaTeX

  • Participants
  • Parent commits 1da785e
  • Branches master

Comments (0)

Files changed (1)

File matplotlib.rst

View file
  • Ignore whitespace
    weeks = mdates.WeekdayLocator(byweekday=SU)  # every weekday
    weeksFmt = mdates.DateFormatter('%Y-%m-%d', interval=1)
 
-
    # format the ticks
    ax.xaxis.set_major_locator(months)
    ax.xaxis.set_major_formatter(monthsFmt)
    ax.xaxis.set_minor_locator(weeks)
 
+LaTeX
+-----
+
+.. code-block:: python
+
+   import matplotlib.pyplot as plt
+   from matplotlib import rc
+    
+   rc('text', usetex=True)
+    
+   plt.sunplot(111)
+    
+   plt.text(0.05, 0.90, r'\underline{\alpha}: ', fontsize=12)
+
 Subplots
 --------