Skip to content

Commit e0bd7e4

Browse files
committed
formattign
1 parent 690e54d commit e0bd7e4

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

‎src/maxplotlib/subfigure/line_plot.py‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ def _sample_colormap(colormap, count, *, css=True):
4949
import matplotlib.colors as mcolors
5050

5151
return [
52-
color
53-
if isinstance(color, str)
54-
else mcolors.to_hex(color, keep_alpha=True)
52+
(
53+
color
54+
if isinstance(color, str)
55+
else mcolors.to_hex(color, keep_alpha=True)
56+
)
5557
for color in sampled
5658
]
5759
return sampled
@@ -2326,9 +2328,9 @@ def bar_marker(kwargs):
23262328
linewidth = kwargs.get("linewidths", kwargs.get("linewidth"))
23272329
if edgecolor is not None or linewidth is not None:
23282330
marker_dict["line"] = dict(
2329-
color=plotly_color(edgecolor)
2330-
if edgecolor is not None
2331-
else None,
2331+
color=(
2332+
plotly_color(edgecolor) if edgecolor is not None else None
2333+
),
23322334
width=linewidth if linewidth is not None else 1,
23332335
)
23342336
trace = go.Scatter(

0 commit comments

Comments
 (0)