plotguy 2.3.7__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plotguy
3
- Version: 2.3.7
3
+ Version: 2.3.9
4
4
  Summary: Plotguy
5
5
  Home-page: https://pypi.org/project/plotguy/
6
6
  Author: Plotguy Team
@@ -243,6 +243,8 @@ class Aggregate:
243
243
  # backtest_name_list = list(df_show_agg_checked['backtest_name'])
244
244
  # equity_path_list = list(df_show_agg_checked['equity_path'])
245
245
 
246
+ df_show_agg_checked = df_show_agg_checked.drop_duplicates('ref_code')
247
+
246
248
  # Aggregate Equity
247
249
  df_list = []
248
250
 
@@ -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(round((252 - 252 * degree)/3)))
514
- elif profile == 3: rgb = (0, 252, int(round((252 - 252 * degree)/3)))
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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plotguy
3
- Version: 2.3.7
3
+ Version: 2.3.9
4
4
  Summary: Plotguy
5
5
  Home-page: https://pypi.org/project/plotguy/
6
6
  Author: Plotguy Team
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="plotguy",
8
- version="2.3.7",
8
+ version="2.3.9",
9
9
  author="Plotguy Team",
10
10
  author_email="plotguy.info@gmail.com",
11
11
  description="Plotguy",
File without changes
File without changes
File without changes
File without changes