You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When plotting a function in an axis environment, if the x_axis range is changed using a ValueTracker, and the same ValueTracker is used as function range, the function does not plot on the expected range. Here is a MWE:
the axes are drawn and the x_axis is ten units wide
the sine wave is added and plotted up to ten units
the x_axis shrinks down to six units, each unit is still one munit wide (no scaling effect, the axis only gets shorter), and the sine wave is now drawn also on only six units
Actual behavior
the axes are drawn and the x_axis is ten units wide
the sine wave is added and plotted up to ten units
the x_axis shrinks down to six units, each unit is still one munit wide (no scaling effect, the axis only gets shorter), BUT the sine wave is now drawn on only about 3.5 units, and it has been scaled down!
Logs
Terminal output
Manim Community v0.18.1
[10/24/24 09:00:31] ERROR module_ops.py:92
VaryingSupportSineWave is not in the
script
DEBUG Hashing ... hashing.py:352
DEBUG Hashing done in 0.006856 s. hashing.py:364
DEBUG Hash generated : hashing.py:367
3348903278_2543047096_4133455014
INFO Animation 0 : Using cached data (hash : cairo_renderer.py:88
3348903278_2543047096_4133455014)
DEBUG List of the first few animation hashes cairo_renderer.py:97
of the scene:
['3348903278_2543047096_4133455014']
DEBUG Hashing ... hashing.py:352
DEBUG Hashing done in 0.006311 s. hashing.py:364
DEBUG Hash generated : hashing.py:367
2784548031_3175177803_765666942
INFO Animation 1 : Using cached data (hash : cairo_renderer.py:88
2784548031_3175177803_765666942)
DEBUG List of the first few animation hashes cairo_renderer.py:97
of the scene:
['3348903278_2543047096_4133455014',
'2784548031_3175177803_765666942']
DEBUG Animation with empty mobject animation.py:175
DEBUG Hashing ... hashing.py:352
DEBUG Hashing done in 0.006665 s. hashing.py:364
DEBUG Hash generated : hashing.py:367
2784548031_774239770_1835257284
INFO Animation 2 : Using cached data (hash : cairo_renderer.py:88
2784548031_774239770_1835257284)
DEBUG List of the first few animation hashes cairo_renderer.py:97
of the scene:
['3348903278_2543047096_4133455014',
'2784548031_3175177803_765666942',
'2784548031_774239770_1835257284']
INFO Combining to Movie file. scene_file_writer.py:617
DEBUG Partial movie files to combine (3 scene_file_writer.py:561
files):
['/Users/username/Library/Cl
oudStorage/someplace/Python/
18_manim/src/media/videos/test_script/
720p30/partial_movie_files/VaryingAm
plitudeSineWave/3348903278_254304709
6_4133455014.mp4',
'/Users/username/Library/Clo
udStorage/someplace/Python/1
8_manim/src/media/videos/test_script/7
20p30/partial_movie_files/VaryingAmp
litudeSineWave/2784548031_3175177803
_765666942.mp4',
'/Users/username/Library/Clo
udStorage/someplace/Python/1
8_manim/src/media/videos/test_script/7
20p30/partial_movie_files/VaryingAmp
litudeSineWave/2784548031_774239770_
1835257284.mp4']
INFO scene_file_writer.py:737
File ready at
'/Users/username/Library/Clo
udStorage/someplace/Python/1
8_manim/src/media/videos/test_script/7
20p30/VaryingAmplitudeSineWave.mp4'
INFO Rendered VaryingAmplitudeSineWave scene.py:247
Played 3 animations
[10/24/24 09:00:32] INFO Previewed File at: file_ops.py:231
'/Users/username/Library/CloudStorage
/someplace/Python/18_manim/src/media/
videos/test_script/720p30/VaryingAmplitudeSineW
ave.mp4'
System specifications
System Details
OS: macOS Sonoma 14.2.1 (23C71)
RAM: 32Go
Python version (python/py/python3 --version): 3.12
Description of bug / unexpected behavior
When plotting a function in an axis environment, if the
x_axis
range is changed using aValueTracker
, and the sameValueTracker
is used as function range, the function does not plot on the expected range. Here is a MWE:Expected behavior
x_axis
is ten units wideActual behavior
x_axis
is ten units wideLogs
Terminal output
System specifications
System Details
python/py/python3 --version
): 3.12pip list
):LaTeX details
Note: the issue has been evoked here.
The text was updated successfully, but these errors were encountered: