-
- max panels to 32 (up from 10) (Issue #377)
-
- New plot type
step
for step/staircase lines inmpf.make_addplot()
(Thank you @pankaj3009)
- New plot type
-
- Add
reversal
parameter 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 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,
xlim
kwarg 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
xlim
kwarg now also accepts- date or datetime string
- date or datetime object (
datetime.datetime
orpandas.Timestamp
)
- Prior to this version,
-
- Add warning when user tries to plot "too much data" which includes reference to documentation
- Add documentation on "Too Much Data".
-
- new kwarg
fontscale
to scale font sizes on plot. - fix bug in
mpf.make_mpf_style()
- was only an issue when kwargs
base_mpf_style
andrc
are used at the same time; see comments in code for more detail.
- was only an issue when kwargs
- new kwarg
-
- fix
check_version.sh
to always fetch latest version ofpip
.
- fix
-
- support
yscale
kwarg. (See alsoyscale.ipynb
, and issue 21).
- support
- Support
type=hollow_and_filled
candles. (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_adjustment
now supportsvolume_linewidth
,ohlc_linewidth
, andcandle_linewidth
.
(see also widths notebook/tutorial)
- Add
style_name
kwarg tompf.make_mpf_style()
- Add
vcdopcod
kwarg tompf.make_marketcolors()
(volume color depends on price change-on-day).
-
fix timezone bug.
-
set kwarg
tz_localize=False
for legacy timezone behavior -
- calculate volume exponent ( more efficient than extra call to
draw()
) - support
volume_exponent
kwarg 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
dict
for 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
- accept lower case column names in dataframe (i.e. 'close' is the same as 'Close') (Issue #197)
tight_layout
now supports adjusting Figure borders (padding) around plot. (Issue #196)
make_mpf_style()
may sety_on_right=None
: prevent crash by treatingNone
the same asFalse
. (Issue #190)
make_addplot()
enhancements:- improve default line-widths algorithm
- rename
set_ylim
kwarg toylim
to be consistent withylabel
kwarg. - deprecate
set_ylim_panelB
(useylim
inmake_addplot()
instead).
axisoff
andtight_layout
should 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)
- improvements to width adjustment algorithm (issue #174)
- automatic width adjustment now also adjusts
mav
lines widths. (issue #171)
- Support setting
ylabel
inmake_addplot()
(Thank you Andy Sum for coding.) - Add
saxbelow
kwarg toset_axisbelow()
, defaults toTrue
so grid lines do not show through candles, etc.
- fix
tight_layout
issue #156 (tight_layout
not affecting Figure Title; Thank you Markus Schulze for pointing this out.)
- 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
- fix bug displaying a single candle
- fix bug "StatisticsError" when only a single data point
- fix poor choice of default color for
type=line
chart default change - fix
savefig
Figure Facecolor bug - fix ohlc bars color in "blueskies" style default change
- 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_ylim
andset_ylim_panelB
kwargshlines
,vlines
,alines
,tlines
Trend, 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
linecolor
kwarg 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
type
validator (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=False
for non-blocking call tompf.plot()
- customize aspect ratio, figure title, y-labels
- customize colors and other
style
aspects of plot no_xgaps
now defaults to True: useshow_nontrading=True
to 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