Skip to content

Commit 00835a2

Browse files
committed
edits based on Andrew's tips
- add beta explanation - quiver -> fig typo - remove hanging format
1 parent dcc1028 commit 00835a2

File tree

1 file changed

+12
-25
lines changed

1 file changed

+12
-25
lines changed

plotly/tools.py

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,9 @@ class FigureFactory(object):
14231423
"""
14241424
BETA functions to create specific chart types.
14251425
1426+
This is beta as in: subject to change in a backwards incompatible way
1427+
without notice.
1428+
14261429
Supported chart types include candlestick, open high low close, quiver,
14271430
and streamline. See FigureFactory.create_candlestick,
14281431
FigureFactory.create_ohlc, FigureFactory.create_quiver, or
@@ -1577,7 +1580,7 @@ def create_quiver(x, y, u, v, scale=.1, arrow_scale=.3,
15771580
u=[1], v=[1],
15781581
scale=1)
15791582
1580-
py.plot(quiver, filename='quiver')
1583+
py.plot(fig, filename='quiver')
15811584
```
15821585
15831586
Example 2: Quiver plot using meshgrid
@@ -2233,34 +2236,18 @@ def create_candlestick(open, high, low, close,
22332236
**kwargs)
22342237

22352238
if direction is 'increasing':
2236-
candle_incr_data = FigureFactory._make_increasing_candle(open,
2237-
high,
2238-
low,
2239-
close,
2240-
dates,
2241-
**kwargs)
2239+
candle_incr_data = FigureFactory._make_increasing_candle(
2240+
open, high, low, close, dates, **kwargs)
22422241
data = candle_incr_data
22432242
elif direction is 'decreasing':
2244-
candle_decr_data = FigureFactory._make_decreasing_candle(open,
2245-
high,
2246-
low,
2247-
close,
2248-
dates,
2249-
**kwargs)
2243+
candle_decr_data = FigureFactory._make_decreasing_candle(
2244+
open, high, low, close, dates, **kwargs)
22502245
data = candle_decr_data
22512246
else:
2252-
candle_incr_data = FigureFactory._make_increasing_candle(open,
2253-
high,
2254-
low,
2255-
close,
2256-
dates,
2257-
**kwargs)
2258-
candle_decr_data = FigureFactory._make_decreasing_candle(open,
2259-
high,
2260-
low,
2261-
close,
2262-
dates,
2263-
**kwargs)
2247+
candle_incr_data = FigureFactory._make_increasing_candle(
2248+
open, high, low, close, dates, **kwargs)
2249+
candle_decr_data = FigureFactory._make_decreasing_candle(
2250+
open, high, low, close, dates, **kwargs)
22642251
data = candle_incr_data + candle_decr_data
22652252

22662253
layout = graph_objs.Layout(barmode='stack',

0 commit comments

Comments
 (0)