Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 78e3b5f

Browse files
Merge pull request matplotlib#20275 from QuLogic/fix-sgskip-examples
Fix some examples that are skipped in docs build
2 parents 6fd7d33 + 0e45e43 commit 78e3b5f

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

‎examples/event_handling/pipong.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,10 @@ class Game:
124124
def __init__(self, ax):
125125
# create the initial line
126126
self.ax = ax
127-
ax.set_ylim([-1, 1])
127+
ax.xaxis.set_visible(False)
128128
ax.set_xlim([0, 7])
129+
ax.yaxis.set_visible(False)
130+
ax.set_ylim([-1, 1])
129131
pad_a_x = 0
130132
pad_b_x = .50
131133
pad_a_y = pad_b_y = .30
@@ -168,7 +170,6 @@ def __init__(self, ax):
168170
self.res = 100.0
169171
self.on = False
170172
self.inst = True # show instructions from the beginning
171-
self.background = None
172173
self.pads = [Pad(pA, pad_a_x, pad_a_y),
173174
Pad(pB, pad_b_x, pad_b_y, 'r')]
174175
self.pucks = []
@@ -177,7 +178,7 @@ def __init__(self, ax):
177178
verticalalignment='center',
178179
horizontalalignment='center',
179180
multialignment='left',
180-
textcoords='axes fraction',
181+
xycoords='axes fraction',
181182
animated=False)
182183
self.canvas.mpl_connect('key_press_event', self.on_key_press)
183184

‎examples/user_interfaces/fourier_demo_wx_sgskip.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __init__(self, parent, label, param):
7070
self.sliderText = wx.TextCtrl(parent, -1, style=wx.TE_PROCESS_ENTER)
7171
self.slider = wx.Slider(parent, -1)
7272
# self.slider.SetMax(param.maximum*1000)
73-
self.slider.SetRange(0, param.maximum * 1000)
73+
self.slider.SetRange(0, int(param.maximum * 1000))
7474
self.setKnob(param.value)
7575

7676
sizer = wx.BoxSizer(wx.HORIZONTAL)
@@ -99,7 +99,7 @@ def sliderTextHandler(self, event):
9999

100100
def setKnob(self, value):
101101
self.sliderText.SetValue('%g' % value)
102-
self.slider.SetValue(value * 1000)
102+
self.slider.SetValue(int(value * 1000))
103103

104104

105105
class FourierDemoFrame(wx.Frame):

‎examples/user_interfaces/svg_histogram_sgskip.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
""" % json.dumps(hist_patches)
150150

151151
# Add a transition effect
152-
css = tree.getchildren()[0][0]
152+
css = tree.find('.//{http://www.w3.org/2000/svg}style')
153153
css.text = css.text + "g {-webkit-transition:opacity 0.4s ease-out;" + \
154154
"-moz-transition:opacity 0.4s ease-out;}"
155155

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /