nazneen commited on
Commit
58f2ab9
1 Parent(s): ca8e444
app.py CHANGED
@@ -75,13 +75,13 @@ def data_comparison(df):
75
  tooltip=['cluster','slice','content','label','pred'],
76
  opacity=opacity
77
  ).properties(
78
- width=1500,
79
- height=1000
80
  ).interactive()
81
 
82
- legend = alt.Chart(df).mark_point().encode(
83
- y=alt.Y('cluster:N', axis=alt.Axis(orient='left'), title=""),
84
  x=alt.X("label"),
 
85
  shape=alt.Shape('label', scale=alt.Scale(
86
  range=['circle', 'diamond']), legend=None),
87
  color=color,
@@ -89,7 +89,7 @@ def data_comparison(df):
89
  selection
90
  )
91
 
92
- layered = legend | scatter
93
 
94
  layered = layered.configure_axis(
95
  grid=False
 
75
  tooltip=['cluster','slice','content','label','pred'],
76
  opacity=opacity
77
  ).properties(
78
+ width=1000,
79
+ height=800
80
  ).interactive()
81
 
82
+ legend = alt.Chart(df).mark_point(size=100, filled=True).encode(
 
83
  x=alt.X("label"),
84
+ y=alt.Y('cluster:N', axis=alt.Axis(orient='right'), title=""),
85
  shape=alt.Shape('label', scale=alt.Scale(
86
  range=['circle', 'diamond']), legend=None),
87
  color=color,
 
89
  selection
90
  )
91
 
92
+ layered = scatter | legend
93
 
94
  layered = layered.configure_axis(
95
  grid=False
error_analysis/utils/__pycache__/style_hacks.cpython-39.pyc CHANGED
Binary files a/error_analysis/utils/__pycache__/style_hacks.cpython-39.pyc and b/error_analysis/utils/__pycache__/style_hacks.cpython-39.pyc differ