Skip to content

Commit 2854efd

Browse files
committedApr 23, 2021
32 panels max (up from 10)
1 parent 1681608 commit 2854efd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
 

‎src/mplfinance/_arg_validators.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def _process_kwargs(kwargs, vkwargs):
301301
return config
302302

303303
def _valid_panel_id(panid):
304-
return panid in ['main','lower'] or (isinstance(panid,int) and panid >= 0 and panid < 10)
304+
return panid in ['main','lower'] or (isinstance(panid,int) and panid >= 0 and panid < 32)
305305

306306
def _scale_padding_validator(value):
307307
if isinstance(value,(int,float)):

‎src/mplfinance/_panels.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ def _build_panels( figure, config ):
77
Create and return a DataFrame containing panel information
88
and Axes objects for each panel, etc.
99
10-
We allow up to 10 panels, identified by their panel id (panid)
11-
which is an integer 0 through 9.
10+
We allow up to 32 panels, identified by their panel id (panid)
11+
which is an integer 0 through 31.
1212
1313
Parameters
1414
----------
@@ -101,8 +101,8 @@ def _build_panels( figure, config ):
101101
raise ValueError('inferred panel list is missing panels: '+str(missing))
102102

103103
else:
104-
if not isinstance(num_panels,int) or num_panels < 1 or num_panels > 10:
105-
raise ValueError('num_panels must be integer 1 to 10, but is "'+str(volume_panel)+'"')
104+
if not isinstance(num_panels,int) or num_panels < 1 or num_panels > 32:
105+
raise ValueError('num_panels must be integer 1 to 32, but is "'+str(volume_panel)+'"')
106106
pset = range(0,num_panels)
107107

108108
_nones = [None]*len(pset)

‎src/mplfinance/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
version_info = (0, 12, 7, 'alpha', 16)
2+
version_info = (0, 12, 7, 'alpha', 17)
33

44
_specifier_ = {'alpha': 'a','beta': 'b','candidate': 'rc','final': ''}
55

0 commit comments

Comments
 (0)
Please sign in to comment.