- 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