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

Skip to content

Commit e3ed136

Browse files
committed
Remove wx version checks.
1 parent 4f09f70 commit e3ed136

File tree

7 files changed

+5
-43
lines changed

7 files changed

+5
-43
lines changed

examples/user_interfaces/README.wx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
You have a few different options available to you for embedding
2-
matplotlib in a wxPython application
2+
matplotlib in a wxPython application
33

44
1. Embed one of the wxPython backend widgets (which subclass wx.Panel)
55
directly and draw plots on it using matplotlib's object-oriented

examples/user_interfaces/embedding_in_wx2_sgskip.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,14 @@
33
Embedding In Wx2
44
================
55
6-
An example of how to use wx or wxagg in an application with the new
7-
toolbar - comment out the setA_toolbar line for no toolbar
6+
An example of how to use wxagg in an application with the new
7+
toolbar - comment out the add_toolbar line for no toolbar
88
"""
99

10-
# Matplotlib requires wxPython 2.8+
11-
# set the wxPython version in lib\site-packages\wx.pth file
12-
# or if you have wxversion installed un-comment the lines below
13-
#import wxversion
14-
#wxversion.ensureMinimal('2.8')
15-
1610
from numpy import arange, sin, pi
1711

1812
import matplotlib
1913

20-
# uncomment the following to use wx rather than wxagg
21-
#matplotlib.use('WX')
22-
#from matplotlib.backends.backend_wx import FigureCanvasWx as FigureCanvas
23-
24-
# comment out the following to use wx rather than wxagg
2514
matplotlib.use('WXAgg')
2615
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
2716

examples/user_interfaces/embedding_in_wx3_sgskip.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,9 @@
1919
This was derived from embedding_in_wx and dynamic_image_wxagg.
2020
2121
Thanks to matplotlib and wx teams for creating such great software!
22-
2322
"""
24-
from __future__ import print_function
2523

26-
# matplotlib requires wxPython 2.8+
27-
# set the wxPython version in lib\site-packages\wx.pth file
28-
# or if you have wxversion installed un-comment the lines below
29-
#import wxversion
30-
#wxversion.ensureMinimal('2.8')
24+
from __future__ import print_function
3125

3226
import sys
3327
import time

examples/user_interfaces/embedding_in_wx4_sgskip.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77
toolbar
88
"""
99

10-
# matplotlib requires wxPython 2.8+
11-
# set the wxPython version in lib\site-packages\wx.pth file
12-
# or if you have wxversion installed un-comment the lines below
13-
#import wxversion
14-
#wxversion.ensureMinimal('2.8')
15-
1610
from numpy import arange, sin, pi
1711

1812
import matplotlib

examples/user_interfaces/embedding_in_wx5_sgskip.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
Embedding In Wx5
44
================
55
6-
Matplotlib requires wxPython 2.8+
7-
set the wxPython version in lib\site-packages\wx.pth file
8-
or if you have wxversion installed un-comment the lines below
9-
import wxversion
10-
wxversion.ensureMinimal('2.8')
116
"""
127

138
import wx

examples/user_interfaces/fourier_demo_wx_sgskip.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@
44
===============
55
66
"""
7-
import numpy as np
87

9-
# matplotlib requires wxPython 2.8+
10-
# set the wxPython version in lib\site-packages\wx.pth file
11-
# or if you have wxversion installed un-comment the lines below
12-
#import wxversion
13-
#wxversion.ensureMinimal('2.8')
8+
import numpy as np
149

1510
import wx
1611
import matplotlib

examples/user_interfaces/wxcursor_demo_sgskip.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
66
Example to draw a cursor and report the data coords in wx
77
"""
8-
# matplotlib requires wxPython 2.8+
9-
# set the wxPython version in lib\site-packages\wx.pth file
10-
# or if you have wxversion installed un-comment the lines below
11-
#import wxversion
12-
#wxversion.ensureMinimal('2.8')
138

149
import matplotlib
1510
matplotlib.use('WXAgg')

0 commit comments

Comments
 (0)