MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / UnicodeMinus

Function UnicodeMinus

DemoPrograms/Demo_Matplotlib_Browser.py:684–696  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

682 return fig
683
684def 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
698def Subplot3d():
699 from mpl_toolkits.mplot3d.axes3d import Axes3D

Callers

nothing calls this directly

Calls 2

set_titleMethod · 0.80
plotMethod · 0.45

Tested by

no test coverage detected