Skip to content

Commit 83bc38e

Browse files
ofuhrerhavogt
authored andcommitted
Replace deprecated axisbg (in 2.0+ of matplotlib) by facecolor (#216)
1 parent a292b78 commit 83bc38e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serialbox-python/serialbox/visualizer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(self, field, fieldname, halospec=None):
6565
self.__figure = plt.figure()
6666

6767
# Slider
68-
slideraxes = plt.axes([0.15, 0.02, 0.5, 0.03], axisbg='lightgoldenrodyellow')
68+
slideraxes = plt.axes([0.15, 0.02, 0.5, 0.03], facecolor='lightgoldenrodyellow')
6969
self.__slider = Slider(slideraxes, 'K level', 0, field.shape[2] - 1, valinit=0)
7070
self.__slider.valfmt = '%2d'
7171
self.__slider.set_val(0)

0 commit comments

Comments
 (0)