Skip to content

Commit 7092176

Browse files
authored
ax.set_facecolor instead of ax.set_axis_bgcolor
Fixes `viscm edit` method for new `matplotlib` versions
1 parent 7112b49 commit 7092176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

viscm/gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ def __init__(self, ax, highlight_point_model, uniform_space,
832832
self.bgcolor_ranges = {"light": (0, 60), "dark": (40, 100)}
833833
self.bg_opposites = {"light": "dark", "dark": "light"}
834834
self.bg = "light"
835-
self.ax.set_axis_bgcolor(self.bgcolors[self.bg])
835+
self.ax.set_facecolor(self.bgcolors[self.bg])
836836

837837
self.image = self.ax.imshow([[[0, 0, 0]]], aspect="equal",
838838
extent=ap_lim + bp_lim,

0 commit comments

Comments
 (0)