plotguy 2.3.8__tar.gz → 2.3.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {plotguy-2.3.8 → plotguy-2.3.9}/PKG-INFO +1 -1
- {plotguy-2.3.8 → plotguy-2.3.9}/plotguy/components.py +4 -4
- {plotguy-2.3.8 → plotguy-2.3.9}/plotguy.egg-info/PKG-INFO +1 -1
- {plotguy-2.3.8 → plotguy-2.3.9}/setup.py +1 -1
- {plotguy-2.3.8 → plotguy-2.3.9}/README.md +0 -0
- {plotguy-2.3.8 → plotguy-2.3.9}/plotguy/__init__.py +0 -0
- {plotguy-2.3.8 → plotguy-2.3.9}/plotguy/aggregate.py +0 -0
- {plotguy-2.3.8 → plotguy-2.3.9}/plotguy/equity_curves.py +0 -0
- {plotguy-2.3.8 → plotguy-2.3.9}/plotguy/signals.py +0 -0
- {plotguy-2.3.8 → plotguy-2.3.9}/plotguy.egg-info/SOURCES.txt +0 -0
- {plotguy-2.3.8 → plotguy-2.3.9}/plotguy.egg-info/dependency_links.txt +0 -0
- {plotguy-2.3.8 → plotguy-2.3.9}/plotguy.egg-info/requires.txt +0 -0
- {plotguy-2.3.8 → plotguy-2.3.9}/plotguy.egg-info/top_level.txt +0 -0
- {plotguy-2.3.8 → plotguy-2.3.9}/setup.cfg +0 -0
|
@@ -508,11 +508,11 @@ class Components:
|
|
|
508
508
|
return df_checked
|
|
509
509
|
|
|
510
510
|
def assign_colour(self, profile, degree):
|
|
511
|
-
if profile == 0: rgb = (0, int(252 - 252 * degree), 0)
|
|
511
|
+
if profile == 0: rgb = (0, max(100, int(252 - 252 * degree)), 0)
|
|
512
512
|
elif profile == 1: rgb = (int(252 - 252 * degree), 252, 0)
|
|
513
|
-
elif profile == 2: rgb = (252, 0, int(
|
|
514
|
-
elif profile == 3: rgb = (0, 252, int(
|
|
515
|
-
elif profile >= 4: rgb = (252, int(252 * degree), 0)
|
|
513
|
+
elif profile == 2: rgb = (252, 0, min(50, int((252 - 252 * degree)/3)))
|
|
514
|
+
elif profile == 3: rgb = (0, 252, int((252 - 252 * degree)/3))
|
|
515
|
+
elif profile >= 4: rgb = (252, max(60, int(252 * degree)), 0)
|
|
516
516
|
return 'rgb' + str(rgb)
|
|
517
517
|
|
|
518
518
|
def generate_main_chart(self, graph_df, backtest_name, equity_curve_folder, para_keys_list):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|