@@ -42,10 +42,12 @@ class WeierstrassFunction(PathologicalWithCoefficients):
42
42
>>> (ax_return,) = ax.plot(x, wf.result)
43
43
>>> def update(frame: int) -> tuple:
44
44
... zoom_factor = frame / 25.0
45
- ... ax.set_xlim(-3 + zoom_factor, 3 - zoom_factor)
45
+ ... ax.set_xlim(
46
+ ... -3 + zoom_factor / 1.3, 3 - zoom_factor/ 1.3
47
+ ... )
46
48
... ax.set_ylim(
47
- ... -2.5 + zoom_factor / 2.5, 2.5 - zoom_factor / 5
48
- ... )
49
+ ... -2.5 + zoom_factor / 2.5, 2.5 - zoom_factor / 5
50
+ ... )
49
51
... return (ax_return,)
50
52
>>> ani = FuncAnimation(fig, update, frames=np.arange(0, 100), blit=True)
51
53
>>> ani.save('WeierstrassFunction.gif', writer='imagemagick', fps=10)
@@ -129,10 +131,12 @@ class RiemannFunction(PathologicalPure):
129
131
>>> (ax_return,) = ax.plot(x, rf.result)
130
132
>>> def update(frame: int) -> tuple:
131
133
... zoom_factor = frame / 25.0
132
- ... ax.set_xlim(-3 + zoom_factor, 3 - zoom_factor)
134
+ ... ax.set_xlim(
135
+ ... -3 + zoom_factor / 1.3, 3 - zoom_factor / 1.3
136
+ ... )
133
137
... ax.set_ylim(
134
- ... -2.5 + zoom_factor / 5, 2.5 - zoom_factor / 5
135
- ... )
138
+ ... -2.5 + zoom_factor / 5, 2.5 - zoom_factor / 5
139
+ ... )
136
140
... return (ax_return,)
137
141
>>> ani = FuncAnimation(fig, update, frames=np.arange(0, 100), blit=True)
138
142
>>> ani.save('RiemannFunction.gif', writer='imagemagick', fps=10)
@@ -189,10 +193,12 @@ class TakagiFunction(PathologicalPure):
189
193
>>> (ax_return,) = ax.plot(x, tf.result)
190
194
>>> def update(frame: int) -> tuple:
191
195
... zoom_factor = frame / 25.0
192
- ... ax.set_xlim(-1.5 + zoom_factor/2, 1.5 - zoom_factor/2)
196
+ ... ax.set_xlim(
197
+ ... -1.5 + zoom_factor / 2.5, 1.5 - zoom_factor / 2.5
198
+ ... )
193
199
... ax.set_ylim(
194
- ... 0 + zoom_factor / 25, 0.6 - zoom_factor / 25
195
- ... )
200
+ ... 0 + zoom_factor / 25, 0.6 - zoom_factor / 25
201
+ ... )
196
202
... return (ax_return,)
197
203
>>> ani = FuncAnimation(fig, update, frames=np.arange(0, 100), blit=True)
198
204
>>> ani.save('TakagiFunction.gif', writer='imagemagick', fps=10)
0 commit comments