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

Function UnicodeMinus

DemoPrograms/Demo_Matplotlib_Browser_Paned.py:695–707  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

693
694
695def 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
710def Subplot3d():

Callers

nothing calls this directly

Calls 2

set_titleMethod · 0.80
plotMethod · 0.45

Tested by

no test coverage detected