Skip to content

Commit 3c02aea

Browse files
Merge pull request #384 from DanielGoldfarb/master
32 panels max (up from 10), and update Release Notes
2 parents 1681608 + 69055ef commit 3c02aea

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

RELEASE_NOTES.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
####
22
---
33

4+
### <a name="v0.12.7a17"></a>v0.12.7a17 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; released 2021-04-23
5+
6+
- <a name="v0.12.7a17"></a>v0.12.7a17 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; merged 2021-04-22
7+
- max panels to 32 (up from 10) ([Issue #377](https://github.com/matplotlib/mplfinance/issues/377))
8+
- <a name="v0.12.7a16"></a>v0.12.7a16 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; merged 2021-04-22
9+
- New plot type **`step`** for step/staircase lines in `mpf.make_addplot()` (Thank you [@pankaj3009](https://github.com/pankaj3009))
10+
- <a name="v0.12.7a15"></a>v0.12.7a15 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; merged 2021-04-22
11+
- Add **`reversal`** parameter to Point and Figure charts. (Thank you [Caleb Coffin](https://github.com/coffincw), for coding up [Issue 368](https://github.com/matplotlib/mplfinance/issues/368))
12+
13+
- <a name="v0.12.7a14"></a>v0.12.7a14 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; merged 2021-04-18<br>
14+
<a name="v0.12.7a13"></a>v0.12.7a13 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; merged 2021-04-18
15+
- Allow **`os.PathLike`** (**`pathlib.Path`**) objects in **`savefig`** (Thank you [Matt Stancliff](https://github.com/mattsta))
16+
17+
418
### <a name="v0.12.7a12"></a>v0.12.7a12 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; released 2021-04-09
519

620
- <a name="v0.12.7a12"></a>v0.12.7a12 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; merged 2021-04-08

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)