Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Using mathplotlib gallery examples in Sagemath

i am interested in the double pendulum problem from Mathplotlib Gallery at matplotlib.org/stable/gallery/animation/double_pendulum.html#sphx-glr-gallery-animation-double-pendulum-py

After pasting the source code into the Jupyter notebook, this error occurred:

TypeError Traceback (most recent call last)

<ipython-input-1-fcbcf0dba74b> in <module> 72 time_template = 'time = %.1fs' 73 time_text = ax.text(RealNumber('0.05'), RealNumber('0.9'), '', transform=ax.transAxes) ---> 74 history_x, history_y = deque(maxlen=history_len), deque(maxlen=history_len) 75 76

TypeError: an integer is required

Does anyone know how to fix this?

Using mathplotlib gallery examples in SagemathSagemath verbatim: error

i am interested in the double pendulum problem from Mathplotlib Gallery at matplotlib.org/stable/gallery/animation/double_pendulum.html#sphx-glr-gallery-animation-double-pendulum-py

After pasting the source code into the Jupyter notebook, this error occurred:

TypeError Traceback (most recent call last)

<ipython-input-1-fcbcf0dba74b> in <module> 72 time_template = 'time = %.1fs' 73 time_text = ax.text(RealNumber('0.05'), RealNumber('0.9'), '', transform=ax.transAxes) ---> 74 history_x, history_y = deque(maxlen=history_len), deque(maxlen=history_len) 75 76

TypeError: an integer is required

Does anyone know how to fix this?

Using mathplotlib Error using matplotlib gallery examples in Sagemath verbatim: errorSageMath verbatim

i I am interested in the double pendulum problem from Mathplotlib Gallery at matplotlib.org/stable/gallery/animation/double_pendulum.html#sphx-glr-gallery-animation-double-pendulum-pythe matplotlib gallery.

After pasting the source code into the Jupyter notebook, this error occurred:

TypeError Traceback (most recent call last)

last)

<ipython-input-1-fcbcf0dba74b> in <module> 72 time_template = 'time = %.1fs' 73 time_text = ax.text(RealNumber('0.05'), RealNumber('0.9'), '', transform=ax.transAxes) ---> 74 history_x, history_y = deque(maxlen=history_len), deque(maxlen=history_len) 75 76

TypeError: an integer is required

required

Does anyone know how to fix this?