Skip to content

Commit 17feb91

Browse files
authored
Merge pull request #42 from Phlya/patch-1
FIX: ax.set_facecolor instead of ax.set_axis_bgcolor
2 parents 98a57fb + c97ac3a commit 17feb91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

viscm/gui.py

Lines changed: 2 additions & 2 deletions
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,
@@ -845,7 +845,7 @@ def _refresh(self):
845845
low, high = self.bgcolor_ranges[self.bg]
846846
if not (low <= Jp <= high):
847847
self.bg = self.bg_opposites[self.bg]
848-
self.ax.set_axis_bgcolor(self.bgcolors[self.bg])
848+
self.ax.set_facecolor(self.bgcolors[self.bg])
849849
sRGB = sRGB_gamut_Jp_slice(Jp, self.uniform_space,
850850
self.ap_lim, self.bp_lim)
851851
self.image.set_data(sRGB)

0 commit comments

Comments
 (0)