Skip to content

Commit a8ab3b0

Browse files
committed
updated style sheets for hollow styles
1 parent b750d2c commit a8ab3b0

File tree

11 files changed

+37
-10
lines changed

11 files changed

+37
-10
lines changed

src/mplfinance/_styledata/binance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
style = dict(style_name = 'binance',
22
base_mpl_style= 'seaborn-darkgrid',
3-
marketcolors = {'candle' : {'up':'#70a800', 'down':'#ea0070'},
3+
marketcolors = {'candle' : {'up':'#70a800', 'down':'#ea0070', 'up_hollow':'#70a800', 'down_hollow':'#ea0070'},
44
'edge' : {'up':'#70a800', 'down':'#ea0070'},
55
'wick' : {'up':'#70a800', 'down':'#ea0070'},
66
'ohlc' : {'up':'#70a800', 'down':'#ea0070'},

src/mplfinance/_styledata/blueskies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
style = dict(style_name = 'blueskies',
22
base_mpl_style='fast',
3-
marketcolors = {'candle' : {'up':'w', 'down':'#0095ff'},
3+
marketcolors = {'candle' : {'up':'w', 'down':'#0095ff', 'up_hollow':'w_hollow', 'down':'#0095ff'},
44
'edge' : {'up':'k', 'down':'#0095ff'},
55
'wick' : {'up':'k', 'down':'#0095ff'},
66
'ohlc' : {'up':'#0095ff', 'down':'#0095ff'},

src/mplfinance/_styledata/brasil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
style = {'base_mpl_style': 'fast',
2-
'marketcolors': {'candle': {'up': '#fedf00', 'down': '#002776'},
2+
'marketcolors': {'candle': {'up': '#fedf00', 'down': '#002776', 'up_hollow': '#fedf00', 'down_hollow': '#002776'},
33
'edge' : {'up': '#fedf00', 'down': '#002776'},
44
'wick' : {'up': '#fedf00', 'down': '#002776'},
55
'ohlc' : {'up': '#fedf00', 'down': '#002776'},

src/mplfinance/_styledata/charles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
style = dict(style_name = 'charles',
22
base_mpl_style= 'fast',
3-
marketcolors = {'candle' : {'up':'#006340', 'down':'#a02128'},
3+
marketcolors = {'candle' : {'up':'#006340', 'down':'#a02128', 'up_hollow':'#006340', 'down_hollow':'#a02128'},
44
'edge' : {'up':'#006340', 'down':'#a02128'},
55
'wick' : {'up':'#006340', 'down':'#a02128'},
66
'ohlc' : {'up':'#006340', 'down':'#a02128'},

src/mplfinance/_styledata/checkers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
style = {'base_mpl_style': 'ggplot',
2-
'marketcolors' : {'candle': {'up': '#000000', 'down': '#ff0000'},
2+
'marketcolors' : {'candle': {'up': '#000000', 'down': '#ff0000', 'up_hollow': '#000000', 'down_hollow': '#ff0000'},
33
'edge' : {'up': '#000000', 'down': '#ff0000'},
44
'wick' : {'up': '#606060', 'down': '#606060'},
55
'ohlc' : {'up': '#000000', 'down': '#ff0000'},

src/mplfinance/_styledata/classic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
style = dict(style_name = 'classic',
22
base_mpl_style= 'fast',
3-
marketcolors = {'candle' : {'up':'w', 'down':'k'},
3+
marketcolors = {'candle' : {'up':'w', 'down':'k', 'up_hollow':'w', 'down_hollow':'k'},
44
'edge' : {'up':'k', 'down':'k'},
55
'wick' : {'up':'k', 'down':'k'},
66
'ohlc' : {'up':'k', 'down':'k'},

src/mplfinance/_styledata/hollow.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
style = dict(style_name = 'hollow',
2+
base_mpl_style= 'seaborn-darkgrid',
3+
marketcolors = {'candle' : {'up':'w', 'down':'r', 'up_hollow':'k', 'down_hollow':'w'},
4+
'edge' : {'up':'k', 'down':'r'},
5+
'wick' : {'up':'k', 'down':'r'},
6+
'ohlc' : {'up':'k', 'down':'r'},
7+
'volume' : {'up':'#1f77b4', 'down':'#1f77b4'},
8+
'vcedge' : {'up':'#1f77b4', 'down':'#1f77b4'},
9+
'vcdopcod': False, # Volume Color is Per Price Change On Day
10+
'alpha' : 0.9,
11+
},
12+
mavcolors = ['#40e0d0','#ff00ff','#ffd700','#1f77b4',
13+
'#ff7f0e','#2ca02c','#e377c2'],
14+
y_on_right = False,
15+
gridcolor = None,
16+
gridstyle = None,
17+
facecolor = '#DCE3EF',
18+
rc = [ ('axes.edgecolor' , 'black' ),
19+
('axes.linewidth' , 1.5 ),
20+
('axes.labelsize' , 'large' ),
21+
('axes.labelweight', 'semibold'),
22+
('lines.linewidth' , 2.0 ),
23+
('font.weight' , 'medium' ),
24+
('font.size' , 12.0 ),
25+
],
26+
base_mpf_style= 'default'
27+
)

src/mplfinance/_styledata/mike.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
style = dict(style_name = 'mike',
22
base_mpl_style= 'dark_background',
3-
marketcolors = {'candle' : {'up':'#000000', 'down':'#0080ff'},
3+
marketcolors = {'candle' : {'up':'#000000', 'down':'#0080ff', 'up_hollow':'#000000', 'down_hollow':'#0080ff'},
44
'edge' : {'up':'#ffffff', 'down':'#0080ff'},
55
'wick' : {'up':'#ffffff', 'down':'#ffffff'},
66
'ohlc' : {'up':'#ffffff', 'down':'#ffffff'},

src/mplfinance/_styledata/nightclouds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
style = dict(style_name = 'nightclouds',
22
base_mpl_style='dark_background',
3-
marketcolors = {'candle' : {'up':'w', 'down':'#0095ff'},
3+
marketcolors = {'candle' : {'up':'w', 'down':'#0095ff', 'up_hollow':'w', 'down_hollow':'#0095ff'},
44
'edge' : {'up':'w', 'down':'#0095ff'},
55
'wick' : {'up':'w', 'down':'w'},
66
'ohlc' : {'up':'w', 'down':'w'},

src/mplfinance/_styledata/starsandstripes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
style = {'base_mpl_style': 'fast',
2-
'marketcolors': {'candle': {'up': '#082865', 'down': '#ae0019'},
2+
'marketcolors': {'candle': {'up': '#082865', 'down': '#ae0019', 'up_hollow': '#082865', 'down_hollow': '#ae0019'},
33
'edge' : {'up': '#082865', 'down': '#ae0019'},
44
'wick' : {'up': '#082865', 'down': '#ae0019'},
55
'ohlc' : {'up': '#082865', 'down': '#ae0019'},

0 commit comments

Comments
 (0)