diff --git a/examples/style_sheets/style_sheets_reference.py b/examples/style_sheets/style_sheets_reference.py index 657c73aadb10..78ed588c398c 100644 --- a/examples/style_sheets/style_sheets_reference.py +++ b/examples/style_sheets/style_sheets_reference.py @@ -39,6 +39,13 @@ def sigmoid(t, t0): amplitudes = np.linspace(1, 1.5, nb_colors) for t0, a in zip(shifts, amplitudes): ax.plot(t, a * sigmoid(t, t0), '-') + ax.grid(visible=True) + # Add annotation for enabling grid + ax.annotate('ax.grid(True)', xy=(-5.0, 0.5), + xytext=(1.4, 1.4), + va="top", ha="right", + bbox=dict(boxstyle="round", alpha=0.2), + ) ax.set_xlim(-10, 10) return ax