Skip to content

Commit 4ca387b

Browse files
Fix some linting issues.
1 parent 0e560d9 commit 4ca387b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

matplotview/_transform_renderer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,11 @@ def draw_markers(
258258
marker_trans,
259259
path,
260260
trans,
261-
rgbFace = None,
261+
rgbFace=None,
262262
):
263263
# If the markers need to be scaled accurately (such as in log scale), just use the fallback as each will need
264264
# to be scaled separately.
265-
if(self.__scale_widths):
265+
if (self.__scale_widths):
266266
super().draw_markers(gc, marker_path, marker_trans, path, trans, rgbFace)
267267
return
268268

@@ -296,7 +296,7 @@ def draw_path_collection(
296296
offset_position,
297297
):
298298
# If we want accurate scaling for each marker (such as in log scale), just use superclass implementation...
299-
if(self.__scale_widths):
299+
if (self.__scale_widths):
300300
super().draw_path_collection(
301301
gc, master_transform, paths, all_transforms, offsets, offset_trans, facecolors,
302302
edgecolors, linewidths, linestyles, antialiaseds, urls, offset_position
@@ -305,7 +305,7 @@ def draw_path_collection(
305305

306306
# Otherwise we transform just the offsets, and pass them to the backend.
307307
print(offsets)
308-
if(np.any(np.isnan(offsets))):
308+
if (np.any(np.isnan(offsets))):
309309
raise ValueError("???")
310310
offsets = self._get_transfer_transform(offset_trans).transform(offsets)
311311
print(offsets)

matplotview/tests/test_view_rendering.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ def test_stop_viewing(fig_test, fig_ref):
243243
ax1_ref.plot(data)
244244
ax1_ref.text(0.5, 0.5, "Hello")
245245

246+
246247
# On MacOS the results are off by an extremely tiny amount, can't even see in diff. It's close enough...
247248
@check_figures_equal(tol=0.02 if sys.platform.startswith("darwin") else 0)
248249
def test_log_line(fig_test, fig_ref):

0 commit comments

Comments
 (0)