Skip to content

Commit 8a1eca0

Browse files
committed
pre-commit fixes
1 parent 09a1013 commit 8a1eca0

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

ESMBenchmarkViz/core_portrait_plot.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
LinearColorMapper,
2121
OpenURL,
2222
Patches,
23+
Span,
2324
TapTool,
24-
Span
2525
)
2626
from bokeh.plotting import figure, show
2727

@@ -457,9 +457,11 @@ def portrait_plot(
457457

458458
# if using glyph rows, add borders
459459
if glyph_rows:
460-
line_locations = np.arange(0, len(yaxis_labels)+1, 1)
460+
line_locations = np.arange(0, len(yaxis_labels) + 1, 1)
461461
for loc in line_locations:
462-
h_lines = Span(location=loc, dimension='width', line_color='black', line_width=2)
462+
h_lines = Span(
463+
location=loc, dimension="width", line_color="black", line_width=2
464+
)
463465
plot.add_layout(h_lines)
464466

465467
# Link to open when clicked
@@ -792,16 +794,16 @@ def get_glyph_row_points(glyph_rows: int):
792794

793795
xpts = [0, 0, 1, 1]
794796
xpts_list = [xpts] * glyph_rows
795-
row_height = 1/glyph_rows
797+
row_height = 1 / glyph_rows
796798
ypts_list = []
797799
positions = []
798800
for g in range(0, glyph_rows):
799-
gypts = np.arange(0, 1+row_height, row_height).astype('float')
801+
gypts = np.arange(0, 1 + row_height, row_height).astype("float")
800802
gypts = np.round(gypts, 3)
801803
gypts_list = [float(x) for x in gypts]
802-
g_array = [gypts_list[g], gypts_list[g+1], gypts_list[g+1], gypts_list[g]]
804+
g_array = [gypts_list[g], gypts_list[g + 1], gypts_list[g + 1], gypts_list[g]]
803805
ypts_list.append(g_array)
804-
position = f'region{g+1}'
806+
position = f"region{g + 1}"
805807
positions.append(position)
806808

807809
return xpts_list, ypts_list, positions

0 commit comments

Comments
 (0)