Spaces:
Sleeping
Sleeping
Heatmap: Customizing attributes for figure()
Browse files- analyze_winscore.py +7 -4
analyze_winscore.py
CHANGED
@@ -223,10 +223,13 @@ def create_heatmap(data_matrix, original_scores, selected_rows=None, hide_scores
|
|
223 |
|
224 |
# Set up the figure with tasks as x-axis and models as y-axis
|
225 |
p = figure(
|
226 |
-
width=plot_width,
|
227 |
-
|
228 |
-
|
229 |
-
|
|
|
|
|
|
|
230 |
)
|
231 |
|
232 |
# Create the color mapper for the heatmap
|
|
|
223 |
|
224 |
# Set up the figure with tasks as x-axis and models as y-axis
|
225 |
p = figure(
|
226 |
+
#width=plot_width,
|
227 |
+
height=plot_height,
|
228 |
+
x_range=list(data_matrix.index),
|
229 |
+
y_range=list(data_matrix.columns),
|
230 |
+
toolbar_location="below",
|
231 |
+
tools="pan,wheel_zoom,box_zoom,reset,save",
|
232 |
+
#x_axis_label="Model", y_axis_label="Task"
|
233 |
)
|
234 |
|
235 |
# Create the color mapper for the heatmap
|