@@ -81,7 +81,7 @@ def parse_yahoo_historical_ochl(fh, adjusted=True, asobject=False):
81
81
----------
82
82
83
83
adjusted : `bool`
84
- If True (default) replace open, high, low, close prices with
84
+ If True (default) replace open, close, high, low prices with
85
85
their adjusted values. The adjustment is by a scale factor, S =
86
86
adjusted_close/close. Adjusted prices are actual prices
87
87
multiplied by S.
@@ -178,7 +178,7 @@ def parse_yahoo_historical(fh, adjusted=True, asobject=False):
178
178
----------
179
179
180
180
adjusted : `bool`
181
- If True (default) replace open, high, low, close prices with
181
+ If True (default) replace open, close, high, low prices with
182
182
their adjusted values. The adjustment is by a scale factor, S =
183
183
adjusted_close/close. Adjusted prices are actual prices
184
184
multiplied by S.
@@ -193,14 +193,14 @@ def parse_yahoo_historical(fh, adjusted=True, asobject=False):
193
193
If False (default for compatibility with earlier versions)
194
194
return a list of tuples containing
195
195
196
- d, open, high, low, close , volume
196
+ d, open, close, high, low , volume
197
197
198
198
If None (preferred alternative to False), return
199
199
a 2-D ndarray corresponding to the list of tuples.
200
200
201
201
Otherwise return a numpy recarray with
202
202
203
- date, year, month, day, d, open, high, low, close ,
203
+ date, year, month, day, d, open, close, high, low ,
204
204
volume, adjusted_close
205
205
206
206
where d is a floating poing representation of date,
@@ -230,12 +230,6 @@ def _parse_yahoo_historical(fh, adjusted=True, asobject=False,
230
230
"""Parse the historical data in file handle fh from yahoo finance.
231
231
232
232
233
- This function has been deprecated in 1.4 in favor of
234
- `parse_yahoo_historical_ochl`, which maintains the original argument
235
- order, or `parse_yahoo_historical_ohlc`, which uses the
236
- open-high-low-close order. This function will be removed in 1.5
237
-
238
-
239
233
Parameters
240
234
----------
241
235
@@ -257,6 +251,12 @@ def _parse_yahoo_historical(fh, adjusted=True, asobject=False,
257
251
258
252
d, open, high, low, close, volume
259
253
254
+ or
255
+
256
+ d, open, close, high, low, volume
257
+
258
+ depending on `ochl`
259
+
260
260
If None (preferred alternative to False), return
261
261
a 2-D ndarray corresponding to the list of tuples.
262
262
@@ -275,7 +275,7 @@ def _parse_yahoo_historical(fh, adjusted=True, asobject=False,
275
275
very similar to the Bunch.
276
276
277
277
ochl : `bool`
278
- Temporary argument to select between ochl and ohlc ordering.
278
+ Selects between ochl and ohlc ordering.
279
279
Defaults to True to preserve original functionality.
280
280
281
281
"""
@@ -732,16 +732,19 @@ def _plot_day_summary(ax, quotes, ticksize=3,
732
732
----------
733
733
ax : `Axes`
734
734
an `Axes` instance to plot to
735
- quotes : sequence of (time, open, high, low, close, ...) sequences
735
+ quotes : sequence of quote sequences
736
736
data to plot. time must be in float date format - see date2num
737
+ (time, open, high, low, close, ...) vs
738
+ (time, open, close, high, low, ...)
739
+ set by `ochl`
737
740
ticksize : int
738
741
open/close tick marker in points
739
742
colorup : color
740
743
the color of the lines where close >= open
741
744
colordown : color
742
745
the color of the lines where close < open
743
746
ochl: bool
744
- temporary argument to select between ochl and ohlc ordering
747
+ argument to select between ochl and ohlc ordering of quotes
745
748
746
749
Returns
747
750
-------
@@ -809,7 +812,7 @@ def candlestick(ax, quotes, width=0.2, colorup='k', colordown='r',
809
812
----------
810
813
ax : `Axes`
811
814
an Axes instance to plot to
812
- quotes : sequence of (time, open, high, low, close , ...) sequences
815
+ quotes : sequence of (time, open, close, high, low , ...) sequences
813
816
As long as the first 5 elements are these values,
814
817
the record can be as long as you want (eg it may store volume).
815
818
@@ -852,7 +855,7 @@ def candlestick_ochl(ax, quotes, width=0.2, colorup='k', colordown='r',
852
855
----------
853
856
ax : `Axes`
854
857
an Axes instance to plot to
855
- quotes : sequence of (time, open, high, low, close , ...) sequences
858
+ quotes : sequence of (time, open, close, high, low , ...) sequences
856
859
As long as the first 5 elements are these values,
857
860
the record can be as long as you want (eg it may store volume).
858
861
@@ -932,12 +935,11 @@ def _candlestick(ax, quotes, width=0.2, colorup='k', colordown='r',
932
935
----------
933
936
ax : `Axes`
934
937
an Axes instance to plot to
935
- quotes : sequence of (time, open, high, low, close, ...) sequences
936
- As long as the first 5 elements are these values,
937
- the record can be as long as you want (eg it may store volume).
938
-
939
- time must be in float days format - see date2num
940
-
938
+ quotes : sequence of quote sequences
939
+ data to plot. time must be in float date format - see date2num
940
+ (time, open, high, low, close, ...) vs
941
+ (time, open, close, high, low, ...)
942
+ set by `ochl`
941
943
width : float
942
944
fraction of a day for the rectangle width
943
945
colorup : color
@@ -947,7 +949,7 @@ def _candlestick(ax, quotes, width=0.2, colorup='k', colordown='r',
947
949
alpha : float
948
950
the rectangle alpha level
949
951
ochl: bool
950
- temporary argument to select between ochl and ohlc ordering
952
+ argument to select between ochl and ohlc ordering of quotes
951
953
952
954
Returns
953
955
-------
@@ -1040,12 +1042,7 @@ def plot_day_summary2(ax, opens, closes, highs, lows, ticksize=4,
1040
1042
a list of lines added to the axes
1041
1043
"""
1042
1044
1043
- warnings .warn ("This function has been deprecated in 1.4 in favor "
1044
- "of `plot_day_summary2_ochl`, "
1045
- "which maintains the original argument order, "
1046
- "or `plot_day_summary2_ohlc`, "
1047
- "which uses the open-high-low-close order. "
1048
- "This function will be removed in 1.5" , mplDeprecation )
1045
+ warnings .warn (_warn_str .format (fun = 'plot_day_summary2' ), mplDeprecation )
1049
1046
return plot_day_summary2_ohlc (ax , opens , highs , lows , closes , ticksize ,
1050
1047
colorup , colordown )
1051
1048
@@ -1278,12 +1275,8 @@ def candlestick2(ax, opens, closes, highs, lows, width=4,
1278
1275
ret : tuple
1279
1276
(lineCollection, barCollection)
1280
1277
"""
1281
- warnings .warn ("This function has been deprecated in 1.4 in favor"
1282
- "of `candlestick_ochl`,"
1283
- "which maintains the original argument order,"
1284
- "or `candlestick_ohlc`,"
1285
- "which uses the open-high-low-close order."
1286
- "This function will be removed in 1.5" , mplDeprecation )
1278
+ warnings .warn (_warn_str .format (fun = 'candlestick2' ),
1279
+ mplDeprecation )
1287
1280
1288
1281
candlestick2_ohlc (ax , opens , highs , lows , closes , width = width ,
1289
1282
colorup = colorup , colordown = colordown ,
@@ -1304,12 +1297,12 @@ def candlestick2_ohlc(ax, opens, highs, lows, closes, width=4,
1304
1297
an Axes instance to plot to
1305
1298
opens : sequence
1306
1299
sequence of opening values
1307
- closes : sequence
1308
- sequence of closing values
1309
1300
highs : sequence
1310
1301
sequence of high values
1311
1302
lows : sequence
1312
1303
sequence of low values
1304
+ closes : sequence
1305
+ sequence of closing values
1313
1306
ticksize : int
1314
1307
size of open and close ticks in points
1315
1308
colorup : color
0 commit comments