v0.12.7a17 released 2021-04-23
-
- max panels to 32 (up from 10) (Issue #377)
-
- New plot type
stepfor step/staircase lines inmpf.make_addplot()(Thank you @pankaj3009)
- New plot type
-
- Add
reversalparameter to Point and Figure charts. (Thank you Caleb Coffin, for coding up Issue 368)
- Add
-
v0.12.7a14 merged 2021-04-18
v0.12.7a13 merged 2021-04-18- Allow
os.PathLike(pathlib.Path) objects insavefig(Thank you Matt Stancliff)
- Allow
v0.12.7a12 released 2021-04-09
- v0.12.7a12 merged 2021-04-08
- Fixed kwarg
return_calculated_values- It was not returning all values for
type='pnf'(point and figure). - See stackoverflow 66991998 for more information.
- It was not returning all values for
- Fixed kwarg
- v0.12.7a11 merged 2021-03-26
- Prior to this version,
xlimkwarg accepted only float or int:- float as matplotlib date; (only when
show_nontrading=True) - int or float as dataframe row number; (only when
show_nontrading=False)
- float as matplotlib date; (only when
xlimkwarg now also accepts- date or datetime string
- date or datetime object (
datetime.datetimeorpandas.Timestamp)
- Prior to this version,
v0.12.7a10 released 2021-03-15
-
- Add warning when user tries to plot "too much data" which includes reference to documentation
- Add documentation on "Too Much Data".
-
- new kwarg
fontscaleto scale font sizes on plot. - fix bug in
mpf.make_mpf_style()- was only an issue when kwargs
base_mpf_styleandrcare used at the same time; see comments in code for more detail.
- was only an issue when kwargs
- new kwarg
-
- fix
check_version.shto always fetch latest version ofpip.
- fix
-
- support
yscalekwarg. (See alsoyscale.ipynb, and issue 21).
- support
v0.12.7a7 released 2021-02-22
- Support
type=hollow_and_filledcandles. (Thank you Kenan Arik) - Add example to show 10 years of daily data and how resampling affects candlesticks. (See also issue 307)
- new function:
mpf.write_style_file(style,filename)allows users to save their custom mpf styles. - support alias names for plot types.
(for example "candle" is the same as "candlestick", and "hollow" is the same as "hollow_and_filled"). - new styles: "ibd" and "kenan".
- kwarg
scale_widths_adjustmentnow supportsvolume_linewidth,ohlc_linewidth, andcandle_linewidth.
(see also widths notebook/tutorial)
v0.12.7a5 released 2021-01-23
- Add
style_namekwarg tompf.make_mpf_style() - Add
vcdopcodkwarg tompf.make_marketcolors()(volume color depends on price change-on-day).
v0.12.7a4 released 2020-12-22
-
fix timezone bug.
-
set kwarg
tz_localize=Falsefor legacy timezone behavior -
- calculate volume exponent ( more efficient than extra call to
draw()) - support
volume_exponentkwarg to allow user to manually choose volume exponent. - add version information to pytest logs
- calculate volume exponent ( more efficient than extra call to
-
- Add "growing candle animation" to examples.
- Bug fix for issue #279
Mpf_Figure.subplots()not working (always raising exception).
-
- Support passing
dictfor kwargtitle=(instead of just string) to allow modification of title font and all other kwargs available to matplotlib'sFigure.suptitle(): The dict must includetitle=<string>. Then just add whateverFigure.suptitle()kwargs to the dict that is passed to mplfinance's kwargtitle=. Thank you Teddy Rowan
- Support passing
v0.12.7a0 released 2020-08-09
Enhancements
v0.12.6a3 released 2020-06-28
- accept lower case column names in dataframe (i.e. 'close' is the same as 'Close') (Issue #197)
v0.12.6a2 released 2020-06-28
tight_layoutnow supports adjusting Figure borders (padding) around plot. (Issue #196)
v0.12.6a1 released 2020-06-25
make_mpf_style()may sety_on_right=None: prevent crash by treatingNonethe same asFalse. (Issue #190)
v0.12.6a0 released 2020-06-24
Enhancements
make_addplot()enhancements:- improve default line-widths algorithm
- rename
set_ylimkwarg toylimto be consistent withylabelkwarg. - deprecate
set_ylim_panelB(useyliminmake_addplot()instead).
Bug fixes
axisoffandtight_layoutshould be independent of each other (issue #180)- fix Spyder console block/hang when not inline call
mpf.plot(). (issues #151 and #183) - fix incorrect linestyles character for dotted (issue #186)
v0.12.5a3 released 2020-06-16
Enhancements
- improvements to width adjustment algorithm (issue #174)
- automatic width adjustment now also adjusts
mavlines widths. (issue #171)
v0.12.5a2 released 2020-06-08
Enhancements
- Support setting
ylabelinmake_addplot()(Thank you Andy Sum for coding.) - Add
saxbelowkwarg toset_axisbelow(), defaults toTrueso grid lines do not show through candles, etc.
Buf Fixes
- fix
tight_layoutissue #156 (tight_layoutnot affecting Figure Title; Thank you Markus Schulze for pointing this out.)
v0.12.5a1 released 2020-06-07
Enhancements
- Subplots: Create up to 10 "panels"
- Can modify relative sizes of panels
- Can modify which is "main" panel
- Can modify which is "volume" panel
- addplot can plot to any panel
- MACD example
- support bar charts in make_addplot (
type='line', 'scatter', or 'bar') - make_addplot scatter now supports sequence of markers and sequence of colors
(Thank you Elan Ernest for posting the sequence of markers solution here) - ability to custom format date/time labels (
datetime_format=) (Thank you Cam McLean) - ability to rotate date/time labels (
xrotation=) - ability to turn axis off (
axisoff=True) (Thank you Will Whitty for testing, code review, and contributing code changes) - support
tight_layout=True - support
fill_between= - new algorithm for adjustment of candle widths, line widths, volume widths, ohlc tick widths default change (Thank you Charles for your help).
- ability to scale the algorithm (up or down)
- ability to override the algorithm (i.e. set width and linewidth of volume bars, candles, ohlc bars. (iss num 81))
- close plot when not needed to stay open default change
- fixes "20 open plots" warning
- removed code to close plots from regression tests: no longer needed
- support NaNs in data to indicate missing data (also fix bug related to min/max and mav when NaNs in data) default change (Thank you Charles for your help)
- allows display low liquidity
- remove support for -1 meaning missing data. -1 is now considered valid data.
- Travis check to ensure each Pull Request has a new version (Thank you Aaron Soellinger)
- remove rcParams context: modifications made by mplfinance are now availabile after calling mplfinance. default change
Bug Fixes
- fix bug displaying a single candle
- fix bug "StatisticsError" when only a single data point
- fix poor choice of default color for
type=linechart default change - fix
savefigFigure Facecolor bug - fix ohlc bars color in "blueskies" style default change
v0.12.4a0 released 2020-05-01
- regression tests for new API
- Renko plots (issue #11) (Thank you Caleb Coffin @coffincw)
style='binance'(Thank you @akgna)- return Figure and Axes (
return_fig=True) (issue #46) - check that inputs are all float, and rename IPython.display.Iamge to avoid confusion with PIL.Image
- ability to
return_calculated_values=True(issue #63) (Thank you @WHug0) - Point and Figure (
type='pnf') plots. (Thank you Caleb Coffin @coffincw) - custom column names (Thank you @borgstrom)
set_ylimandset_ylim_panelBkwargshlines,vlines,alines,tlinesTrend, Support, Resistance, and Trading/Signal lines- (Thank you Aaron Soellinger @free-soellingeraj for writing regression tests for this.)
-
v0.12.3a3 released 2020-03-04
linecolorkwarg for line plots (Thank you Caleb Coffin @coffincw)- implement save figure to in-memory buffer (Thank you Caleb Coffin @coffincw)
-
v0.12.3a2 released 2020-02-21
- implement custom markers (issue#30) (Thank you Amir Atashin @amiaty)
- fix minor issue with chart
typevalidator (Thank you Amir Atashin @amiaty) - add internal functions:
_bypass_kwarg_validation()and_kwarg_not_implemented()
-
v0.12.3a1 Released 2020-02-16
- fix issue#28: math.log crash on zero in data
- remove "Implemented" field from kwarg dicts
- yahoo style show colors for
ohlc bars
-
v0.12.3a0 Released 2020-02-12
- kwarg
block=Falsefor non-blocking call tompf.plot() - customize aspect ratio, figure title, y-labels
- customize colors and other
styleaspects of plot no_xgapsnow defaults to True: useshow_nontrading=Trueto set no_xgaps to false- secondary y-axis available to
make_addplot() - bug fix for volume widths
- kwarg
-
v0.12.0a3 Released 2020-01-16
- Increase mav limit from 3 to 7 different mavs
-
v0.12.0a2 Released 2020-01-14
- Ability to save plot to a file (pdf, svg, png, jpg, ...)
-
v0.12.0a1 Released 2020-01-09
- Ability to plot arbitrary user data (in addition to basic OHLCV data).
- both line and scatter plots available.
- optionally plot on either the "main" or "lower" (aka "volume") axis.
-
v0.11.x Released 2019-12-20
- Basic Plotting from Pandas DataFrame of OHLC bars and candlesticks.
- optional display of volume
- optional display of (up to 3 different) moving averages.
- old API still available by importing from "mplfinance/original_flavor"
-
v0.10.x Released 2016-09-08
- Old mpl-finance API set up as its own package
(i.e. removed from the matplotlib package).
- Old mpl-finance API set up as its own package