Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 85ceba6

Browse files
committed
Warn when using the Gtk3Agg backend on Python 3
1 parent 8aceadd commit 85ceba6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/matplotlib/backends/backend_gtk3agg.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
import cairo
22
import numpy as np
3+
import sys
4+
import warnings
35

46
import backend_agg
57
import backend_gtk3
68
from matplotlib.figure import Figure
79
from matplotlib import transforms
810

11+
if sys.version_info[0] >= 3:
12+
warnings.warn("The Gtk3Agg backend is not known to work on Python 3.x.")
13+
914

1015
class FigureCanvasGTK3Agg(backend_gtk3.FigureCanvasGTK3,
1116
backend_agg.FigureCanvasAgg):

0 commit comments

Comments
 (0)