Repository navigation
Releases: franceschiniandrea/mpl_bsic
Releases · franceschiniandrea/mpl_bsic
Release list
v1.3.1
v1.3.0
V1.3.0
New Features
Excel Styling
df_to_excel: style a df and export to excelstyle_excel_file: style an excel file and create a new version, formatted
Exporting Figures
export_figure: export a figure according to BSIC style
Others
apply_bsic_style: check if figure has suptitle before applying styles#22- Updated Docs
v1.2.2
What's New
- Fixed the way that
add_fontsfinds the fonts folder and made sure to include in the production package by putting it within the mpl_bsic folder
What's Changed
- Fix fonts and font path in add_fonts by @NotFrancee in #20
Full Changelog: 1.2.1...1.2.2
v1.2.1
Main Functions
plot_trade:- first version of the function to plot trades.
- The function takes a PnL and the time series of the underlying, and plots both in two different subfigures.
- To learn more about how the function works, refer to the docs!
apply_bsic_style- Multiple Axes: Now works with multiple axes as parameters, as returned when calling
plt.subplotswith more than 1 subplot - Sources: now you can specify sources to be displayed at the bottom of the figure. By default, it specifies BSIC.
- Multiple Axes: Now works with multiple axes as parameters, as returned when calling
apply_bsic_logo- Now the function works through an animation, which runs only once at the end.
check_figsize: now it works properly, returning the recommended size for the plot, and prints any warning through the logging module.
Tests
- Tests now work without showing the figure
- Implemented GH Actions to run tests on every PR
Utils
add_fonts: Function to check if the fonts are installed. If not, it installs them temporarily so that they can be used byapply_bsic_styleinsert_animation: appends an animation to the figure attribute_bsic_animationsrun_animations: forces the animations to run, so that they are correctly exported when it is not possible to render them (tests or when building docs)- Utils are a module in itself and included in every release, so that functions can be imported from the main code
Other
- fonts: garamond .ttf files were incorrect. I fixed them and put the correct files in the folder.
- Updated Docs thoroughly, adding more examples and improving the way it saves and displays the plots.
- Animations are now stored in an attribute of the figure (
_bsic_animations) as an list. When new animations are added they are appended to the list. Seeinsert_animation
List of the PRs merged
- Update README and License by @NotFrancee in #4
- Add more thorough tests by @NotFrancee in #5
- Logo animation + fixed testing by @NotFrancee in #6
- Fixed Fonts by @NotFrancee in #7
- GitHub Actions and installing fonts in the system by @NotFrancee in #8
- feat: moved logos outside the main project folder by @NotFrancee in #9
- Fix utils imports and logo paths in prod by @NotFrancee in #10
- Fix animations to avoid lag while plotting by @NotFrancee in #11
- feat: changed workflow filename and name by @NotFrancee in #12
- apply_bsic_style with multiple axis by @NotFrancee in #13
- Function to plot trades by @NotFrancee in #14
- Improved
mpl_bsic.check_figsize()by @NotFrancee in #15 - Update Docs by @NotFrancee in #16
- Added sources to plot when using apply_bsic_style by @NotFrancee in #17
- Changelog for 1.2.0 by @NotFrancee in #18
- Fix docs by @NotFrancee in #19
Full Changelog: 1.1.6...1.2.1
v1.1.6
First Stable Release of mpl_bsic
Summary
First release. Read the docs
Functions
apply_bsic_styleapply_bsic_logocheck_figsizepreprocess_dataframeformat_timeseries_axis
Full Changelog: 1.1.5...1.1.6