prakharg24 commited on
Commit
977678d
·
verified ·
1 Parent(s): f6dd689

Update my_pages/rashomon_effect.py

Browse files
Files changed (1) hide show
  1. my_pages/rashomon_effect.py +6 -1
my_pages/rashomon_effect.py CHANGED
@@ -17,7 +17,7 @@ def render():
17
 
18
  # Function to plot scatter
19
  def plot_scatter(x, y, colors, title="", decision_boundary=None, boundary_type=None, highlight_point=None):
20
- fig, ax = plt.subplots(figsize=(5, 5))
21
  ax.scatter(x, y, c=colors, alpha=0.6)
22
  ax.set_xlabel("Annual Income")
23
  ax.set_ylabel("Credit Score")
@@ -38,6 +38,11 @@ def render():
38
  if highlight_point is not None:
39
  ax.scatter(*highlight_point, c='yellow', edgecolors='black', s=200, zorder=5)
40
 
 
 
 
 
 
41
  return fig
42
 
43
  # Top scatter plot (centered to match smaller width)
 
17
 
18
  # Function to plot scatter
19
  def plot_scatter(x, y, colors, title="", decision_boundary=None, boundary_type=None, highlight_point=None):
20
+ fig, ax = plt.subplots(figsize=(3, 3))
21
  ax.scatter(x, y, c=colors, alpha=0.6)
22
  ax.set_xlabel("Annual Income")
23
  ax.set_ylabel("Credit Score")
 
38
  if highlight_point is not None:
39
  ax.scatter(*highlight_point, c='yellow', edgecolors='black', s=200, zorder=5)
40
 
41
+ ax.spines['right'].set_visible(False)
42
+ ax.spines['bottom'].set_visible(False)
43
+ ax.set_xticks([])
44
+ ax.set_yticks([])
45
+
46
  return fig
47
 
48
  # Top scatter plot (centered to match smaller width)