()
| 682 | return fig |
| 683 | |
| 684 | def UnicodeMinus(): |
| 685 | import numpy as np |
| 686 | import matplotlib |
| 687 | import matplotlib.pyplot as plt |
| 688 | |
| 689 | # Fixing random state for reproducibility |
| 690 | np.random.seed(19680801) |
| 691 | |
| 692 | matplotlib.rcParams['axes.unicode_minus'] = False |
| 693 | fig, ax = plt.subplots() |
| 694 | ax.plot(10 * np.random.randn(100), 10 * np.random.randn(100), 'o') |
| 695 | ax.set_title('Using hyphen instead of Unicode minus') |
| 696 | return fig |
| 697 | |
| 698 | def Subplot3d(): |
| 699 | from mpl_toolkits.mplot3d.axes3d import Axes3D |