@@ -42,10 +42,12 @@ class WeierstrassFunction(PathologicalWithCoefficients):
4242 >>> (ax_return,) = ax.plot(x, wf.result)
4343 >>> def update(frame: int) -> tuple:
4444 ... 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+ ... )
4648 ... 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+ ... )
4951 ... return (ax_return,)
5052 >>> ani = FuncAnimation(fig, update, frames=np.arange(0, 100), blit=True)
5153 >>> ani.save('WeierstrassFunction.gif', writer='imagemagick', fps=10)
@@ -129,10 +131,12 @@ class RiemannFunction(PathologicalPure):
129131 >>> (ax_return,) = ax.plot(x, rf.result)
130132 >>> def update(frame: int) -> tuple:
131133 ... 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+ ... )
133137 ... 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+ ... )
136140 ... return (ax_return,)
137141 >>> ani = FuncAnimation(fig, update, frames=np.arange(0, 100), blit=True)
138142 >>> ani.save('RiemannFunction.gif', writer='imagemagick', fps=10)
@@ -189,10 +193,12 @@ class TakagiFunction(PathologicalPure):
189193 >>> (ax_return,) = ax.plot(x, tf.result)
190194 >>> def update(frame: int) -> tuple:
191195 ... 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+ ... )
193199 ... 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+ ... )
196202 ... return (ax_return,)
197203 >>> ani = FuncAnimation(fig, update, frames=np.arange(0, 100), blit=True)
198204 >>> ani.save('TakagiFunction.gif', writer='imagemagick', fps=10)
0 commit comments