()
| 693 | |
| 694 | |
| 695 | def UnicodeMinus(): |
| 696 | import numpy as np |
| 697 | import matplotlib |
| 698 | import matplotlib.pyplot as plt |
| 699 | |
| 700 | # Fixing random state for reproducibility |
| 701 | np.random.seed(19680801) |
| 702 | |
| 703 | matplotlib.rcParams['axes.unicode_minus'] = False |
| 704 | fig, ax = plt.subplots() |
| 705 | ax.plot(10 * np.random.randn(100), 10 * np.random.randn(100), 'o') |
| 706 | ax.set_title('Using hyphen instead of Unicode minus') |
| 707 | return fig |
| 708 | |
| 709 | |
| 710 | def Subplot3d(): |