gxurxv commited on
Commit
3abd9ad
·
verified ·
1 Parent(s): 69a8209

update titles

Browse files
modius_performance/visualization/apr_charts.py CHANGED
@@ -122,16 +122,16 @@ class APRChart(BaseChart):
122
 
123
  def _add_region_annotations(self, fig: go.Figure, y_range: Dict[str, float]) -> None:
124
  """Add annotations for positive and negative regions."""
125
- # Annotation for negative region
126
  fig.add_annotation(
127
  x=-0.08,
128
- y=-25,
129
  xref="paper",
130
  yref="y",
131
  text="Percent drawdown [%]",
132
  showarrow=False,
133
  font=dict(
134
- size=16,
135
  family=self.config['font_family'],
136
  color="black",
137
  weight="bold"
@@ -140,16 +140,16 @@ class APRChart(BaseChart):
140
  align="center"
141
  )
142
 
143
- # Annotation for positive region
144
  fig.add_annotation(
145
  x=-0.08,
146
- y=50,
147
  xref="paper",
148
  yref="y",
149
  text="Agent APR [%]",
150
  showarrow=False,
151
  font=dict(
152
- size=16,
153
  family=self.config['font_family'],
154
  color="black",
155
  weight="bold"
 
122
 
123
  def _add_region_annotations(self, fig: go.Figure, y_range: Dict[str, float]) -> None:
124
  """Add annotations for positive and negative regions."""
125
+ # Annotation for negative region - positioned lower to avoid overlap
126
  fig.add_annotation(
127
  x=-0.08,
128
+ y=-50,
129
  xref="paper",
130
  yref="y",
131
  text="Percent drawdown [%]",
132
  showarrow=False,
133
  font=dict(
134
+ size=14,
135
  family=self.config['font_family'],
136
  color="black",
137
  weight="bold"
 
140
  align="center"
141
  )
142
 
143
+ # Annotation for positive region - positioned higher to avoid overlap
144
  fig.add_annotation(
145
  x=-0.08,
146
+ y=100,
147
  xref="paper",
148
  yref="y",
149
  text="Agent APR [%]",
150
  showarrow=False,
151
  font=dict(
152
+ size=14,
153
  family=self.config['font_family'],
154
  color="black",
155
  weight="bold"