File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
- # show how to add a matplotlib FigureCanvasGTK widget to a gtk.Window
2
+ """
3
+ show how to add a matplotlib FigureCanvasGTK or FigureCanvasGTKAgg widget to a
4
+ gtk.Window
5
+ """
3
6
4
7
from matplotlib .numerix import arange , sin , pi
5
8
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
- # show how to add a matplotlib FigureCanvasGTK widget and a toolbar to a gtk.Window
2
+ """
3
+ show how to add a matplotlib FigureCanvasGTK or FigureCanvasGTKAgg widget and
4
+ a toolbar to a gtk.Window
5
+ """
3
6
4
7
from matplotlib .numerix import arange , sin , pi
5
8
6
9
import matplotlib
7
- matplotlib .use ('GTKAgg' ) # or 'GTK'
10
+ #matplotlib.use('GTK')
11
+ matplotlib .use ('GTKAgg' )
8
12
9
13
# switch comments for gtk over gtkagg
10
- from matplotlib .backends .backend_gtk import FigureCanvasGTK as FigureCanvas
11
- # from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvas
14
+ # from matplotlib.backends.backend_gtk import FigureCanvasGTK as FigureCanvas
15
+ from matplotlib .backends .backend_gtkagg import FigureCanvasGTKAgg as FigureCanvas
12
16
13
17
# or NavigationToolbar for classic
14
18
from matplotlib .backends .backend_gtk import NavigationToolbar2GTK as NavigationToolbar
You can’t perform that action at this time.
0 commit comments