Skip to content

Commit fe0320d

Browse files
committed
DOC: Fix goog.npz sample data description
1 parent 85807cb commit fe0320d

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

examples/lines_bars_and_markers/scatter_demo2.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
import matplotlib.pyplot as plt
1010
import matplotlib.cbook as cbook
1111

12-
# Load a numpy record array from yahoo csv data with fields date, open, close,
13-
# volume, adj_close from the mpl-data/example directory. The record array
14-
# stores the date as an np.datetime64 with a day unit ('D') in the date column.
12+
# Load a numpy record array from yahoo csv data with fields date, open, high,
13+
# low, close, volume, adj_close from the mpl-data/sample_data directory. The
14+
# record array stores the date as an np.datetime64 with a day unit ('D') in
15+
# the date column.
1516
price_data = (cbook.get_sample_data('goog.npz', np_load=True)['price_data']
1617
.view(np.recarray))
1718
price_data = price_data[-250:] # get the most recent 250 trading days

examples/text_labels_and_annotations/date.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
import matplotlib.dates as mdates
2727
import matplotlib.cbook as cbook
2828

29-
# Load a numpy structured array from yahoo csv data with fields date, open,
30-
# close, volume, adj_close from the mpl-data/example directory. This array
31-
# stores the date as an np.datetime64 with a day unit ('D') in the 'date'
32-
# column.
29+
# Load a numpy record array from yahoo csv data with fields date, open, high,
30+
# low, close, volume, adj_close from the mpl-data/sample_data directory. The
31+
# record array stores the date as an np.datetime64 with a day unit ('D') in
32+
# the date column.
3333
data = cbook.get_sample_data('goog.npz', np_load=True)['price_data']
3434

3535
fig, axs = plt.subplots(3, 1, figsize=(6.4, 7), constrained_layout=True)

0 commit comments

Comments
 (0)