Commit 8244585
Allow saving figures, instead of showing them. (mementum#297)
* Allow saving figures, instead of showing them.
For example, one can pass --plot savefig=True to bt-run script to
store all figures as backtrader-plot-N.pdf files. Useful for running
backtests non-interactively and saving plots.
Currently stores as PDF, but other naming pattern and file extensions
can be used (e.g. 'plot-%i.png'). Current format, figure size, and dpi
optimised for widescreen on-screen viewing.
* Use png, as those files are smaller.1 parent 59849b4 commit 8244585
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
865 | 865 | | |
866 | 866 | | |
867 | 867 | | |
| 868 | + | |
868 | 869 | | |
869 | 870 | | |
870 | 871 | | |
| |||
912 | 913 | | |
913 | 914 | | |
914 | 915 | | |
915 | | - | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
916 | 920 | | |
917 | 921 | | |
918 | 922 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
758 | 763 | | |
759 | 764 | | |
760 | 765 | | |
| |||
0 commit comments