Skip to content
Prev Previous commit
Next Next commit
remove plot from whatsnew
  • Loading branch information
rcomer committed Dec 7, 2025
commit 9d777268e7b14319f0a90cfabc85c796aa00cc42
20 changes: 0 additions & 20 deletions doc/release/next_whats_new/stackplot_style_sequences.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,3 @@ Stackplot styling
`~.Axes.stackplot` now accepts sequences for the style parameters *facecolor*,
*edgecolor*, *linestyle*, and *linewidth*, similar to how the *hatch* parameter
is already handled.

.. plot::
:include-source: true
:alt: A stackplot showing with two regions. The bottom region is red with black dots and a dotted black outline. The top region is blue with gray stars and a thicker dashed outline.

import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(0, 10, 10)
y1 = 1.0 * x
y2 = 2.0 * x + 1

fig, ax = plt.subplots()

ax.stackplot(x, y1, y2,
facecolor=['tab:red', 'tab:blue'],
edgecolor=['black', 'gray'],
linestyle=[':', '--'],
linewidth=[2, 3],
hatch=['.', '*'])