mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
* quick econ fix * black * keys and feature flags * terminal name 👀 * some more replacements * some more replacements * edit pyproject * gst -> openbb * add example portfolios back to git * Update api from gst * sorry. skipping some tests * another round of names * another round of test edits * Missed some .gst refs and update timezone * water mark stuff * Fixing Names in terminal.spec and name of GTFF_DEFAULTS to OBBFF_DEFAULTS * fix more GST to OpenBB Terminal * Logging : merge conflicts with main * Revert wrong files Co-authored-by: Andrew <andrew.kenreich@gmail.com> Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt> Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
31 lines
1.2 KiB
Python
31 lines
1.2 KiB
Python
import os
|
|
|
|
PLOT_DPI = int(os.getenv("OBBFF_PLOT_DPI", "100"))
|
|
|
|
# Backend to use for plotting
|
|
BACKEND = os.getenv("OBBFF_BACKEND", "None")
|
|
if BACKEND == "None":
|
|
BACKEND = None # type: ignore
|
|
# Examples:
|
|
# "tkAgg" - This uses the tkinter library. If unsure, set to this
|
|
# "module://backend_interagg" - This is what pycharm defaults to in Scientific Mode
|
|
# "MacOSX" - Mac default. Does not work with backtesting
|
|
# "Qt5Agg" - This requires the PyQt5 package is installed
|
|
# See more: https://matplotlib.org/stable/tutorials/introductory/usage.html#the-builtin-backends
|
|
|
|
# Used when USE_PLOT_AUTOSCALING is set to False
|
|
PLOT_HEIGHT = int(os.getenv("OBBFF_PLOT_HEIGHT", "500"))
|
|
PLOT_WIDTH = int(os.getenv("OBBFF_PLOT_WIDTH", "800"))
|
|
|
|
# Used when USE_PLOT_AUTOSCALING is set to True
|
|
PLOT_HEIGHT_PERCENTAGE = float(os.getenv("OBBFF_PLOT_HEIGHT_PERCENTAGE", "50.00"))
|
|
PLOT_WIDTH_PERCENTAGE = float(os.getenv("OBBFF_PLOT_WIDTH_PERCENTAGE", "70.00"))
|
|
|
|
# When autoscaling is True, choose which monitor to scale to
|
|
# Primary monitor = 0, secondary monitor use 1
|
|
MONITOR = int(os.getenv("OBBFF_MONITOR", "0"))
|
|
|
|
# Color for `view` command data. All pyplot colors listed at:
|
|
# https://matplotlib.org/stable/gallery/color/named_colors.html
|
|
VIEW_COLOR = "tab:green"
|