* fix a typo in deep_dive.rst (#3377)
* Several GitHub actions updates (#3397)
* Bump docker/login-action from 2 to 3
Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2...v3)
---
updated-dependencies:
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump docker/setup-buildx-action from 2 to 3
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3)
---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump docker/build-push-action from 4 to 5
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4 to 5.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v4...v5)
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump docker/setup-qemu-action from 2 to 3
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v2...v3)
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* rtd: enable htmlzip build (#3355)
also, bump python to 3.11
fixes https://github.com/ManimCommunity/manim/issues/3342
* fix(docs): Remove extra curly bracket in LaTeX math expression to fix issue #3330 (#3389)
* Bug fix: Use np.isclose for float equality in number line elongated ticks (#3392)
* use np.isclose for float equality in number line elongated ticks
* use offsets relative to x_min to tell if we need to elongate a tick
* forgot to subtract to create list of offsets
* add test for elongated ticks float equality
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Remove unused import
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Updated several dependencies (#3399)
* updated lockfile
* ran poetry update again
* pyproject.toml: update manimpango version (#3405)
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Added docs for functions in `mobject_update_utils` (#3325)
* Added docs for functions in mobject_update_utils
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Updated docstring of always_shift
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Added period to sentence.
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Updated parameter description in always_redraw
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update always_rotate description
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Finished parameters in always_redraw
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Changed comment in always_shift
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* update always_shift description
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* used normalize from manim.utils.space_ops
* fixed indentation in always_redraw
* added type-hints
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Fix tests to run on Cairo 1.18.0 (#3416)
* Add a script to build and install cairo
* Update gui tests for cairo 1.18.0
* update script to set env vars
* Make the script run with plain python
* Prefer the recently built one in pkg-config
* Skip the built if it's windows
* CI: build and install latest cairo
* CI: only run when cache is missed
* Disable compiling tests while building cairo
* update poetry lock file
* Display the cairo version when running pytest
* fixup
* tests: skip graphical test when cairo is old
* fix the path to find the pkgconfig files on linux
* set the LD_LIBRARY_PATH too
only then it'll work on linux
* fixup
* small fixup
* Move the script inside `.github/scripts` folder
* Make the minimum cairo version a constant
* Seperate setting env vars to a sperate step
this seem to have broken when cache is hit
* Fix: Fixed a bug in regards to empty inputs in AddTextLetterByLetter class. (#3404)
* Misc: Just a class to test out some functions
* Fix: Fixed a bug in AddTextLetterByLetter class
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix: Adjusted changes according to Ben's comments
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix: Removed imports
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Feat: Adjusted changes to AddTextLetterByLetter
* Feat: Added test_creation
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Introduce new workflow creating a downloadable version of the documentation (#3417)
* Revert "rtd: enable htmlzip build (#3355)"
This reverts commit 571f79be2c.
* use python3.11 to build docs
* upgrade python version used in release publish workflow
* new workflow for building downloadable docs
* change event trigger for testing
* sudo apt
* rename release job; build html in poetry env
* set GITHUB_PATH instead of PATH
* introduce additional step
* use correct binary path
* forgot microtype
* fonts-roboto + actually compress files correctly
* fix asset path
* Update .github/workflows/release-publish-documentation.yml
Co-authored-by: Naveen M K <naveen521kk@gmail.com>
* pull_request -> workflow_dispatch
* Update .github/workflows/release-publish-documentation.yml
---------
Co-authored-by: Naveen M K <naveen521kk@gmail.com>
* Fix incorrect submobject count of multi-part Tex/MathTex mobjects by stopping them from adding empty submobjects (#3423)
* do not add a VectorizedPoint as a submobject if SingleStringMathTex renders to empty SVG
* test new behavior
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update tests/module/mobject/text/test_texmobject.py
* Update tests/module/mobject/text/test_texmobject.py
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* CI: fix caching of cairo (#3419)
I forgot to change the path after moving around the file.
* Fix CSV reader adding empty lists in rendering summary (#3430)
* Fix CSV reader adding empty files
Fixes issue #3311
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Fix None check order in _tree_layout (#3421)
* Fix None check order in _tree_layout
* add tests to test_graph.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Bump teatimeguest/setup-texlive-action from 2 to 3 (#3431)
Bumps [teatimeguest/setup-texlive-action](https://github.com/teatimeguest/setup-texlive-action) from 2 to 3.
- [Release notes](https://github.com/teatimeguest/setup-texlive-action/releases)
- [Commits](https://github.com/teatimeguest/setup-texlive-action/compare/v2...v3)
---
updated-dependencies:
- dependency-name: teatimeguest/setup-texlive-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* bump dependencies -- see #3241 (#3433)
* Fix Typing (#3086)
* first draft of color class + starting library conversion
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* changed everything to Manim color todo: figure out circular dependency in utils
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* first working draft of new color version
* resolving conflicts
* resolving conflicts
* resolving conflicts
* resolving conflicts
* resolving conflicts
* changed default internal value of ManimColor to np.ndarray[float]
* starting to fix tests
* fixed more tests and changed precision of manim color
* removed premature color conversion
* fixed some more tests
* final test changes
* fix doctests
* fix for 3.8
* fixing ManimColor string representation
* removing some unneccesary conversions
* moved community constants to manim_colors.py and added more color standards
* Added typing.py and typed bezier.py, core.py, constants.py fully
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fixed codeql complaints
* add type ignore for np.allclose
* fixed import in three_dimensions
* added ignore for F401 back again in flake
* added typings to coordinate_systems.py
* Few improvements to `graphing/coordinate_systems.py`
* added some typings to mobject/geometry/line.py
* updated typings for mobject/geometry/line.py
* Add missing imports to `line.py`
* added typings to three_dimensions.py
* Use `FunctionOverride` for animation overrides
Fix type signature of `set_color_by_gradient`
* Remove `TYPE_CHECKING` check
Doc is failing
* Revert "Remove `TYPE_CHECKING` check"
Fails due to circular import
* Use `Self` in `coordinate_systems.py`
* Typehinted mobject.py and updated manim.typing.py
* Typed VMobject
* Type-hinted manim.mobject.geometry
* math.cos->np.cos, etc & fixed incorrect typehints
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix missing annotations import
* TypeAlias fix in typing.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add ignore errors again to mypy because commits are not possible like this
* Fix last typing issues
* Update docs
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Only type check manim
* Try fixing pre-commit
* fix merge
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix compat
* Fix compat again
* Fix imports compat
* Use union syntax
* Use union syntax
* Fix reduce_across_dimension
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Various test and merge fixes
* Doc fixes
* Last doc fix
* Revert usage of np over math
* Bump numpy version
* Remove obsolete duplicate example
* Fixed Incorrect Typehint in manim.constants
* Fix docstring typo
* More fixes
Use mypy.ini instead of .mypy.ini
Fix more docstrings
Improve types in utils and constants
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* docs fixes
* Add internal aliases
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix compat
* line lengths in .rst file, formatting, typos
* add docstring for space_ops:cross2d
* add some more arrow tip typings (in a non-circular import causing way)
* yes, this can be deleted
* fix formatting of example
* added docstring to bezier::inverse_interpolation
* added docstring + test for bezier::match_interpolate
* some improvements in coordinate_systems
* Vector -> Vector3
* replaced np.ndarray with more appropriate type hints
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Apply feedback
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* revert to previous (new) version
* fix doctest
* fix ReST errors
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Lembcke <alex.lembcke@gmail.com>
Co-authored-by: Viicos <65306057+Viicos@users.noreply.github.com>
Co-authored-by: JasonGrace2282 <aarush.deshpande@gmail.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* fix: issue with ImageMobject bounding box (#3340)
* fix: fix an issue with ImageMobject bounding box
A missing point resulted in smaller bounding box causing issues it to be
smaller when the object is rotated. Added the missing fourth point to
ImageMobject points and altered call from camera. Filled in docstring
that used to propagate from superclass, saying that ImageMobject has no
points.
* add a test to check that rotating an image to and from doesn't change it
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: Václav Blažej <vaclav.blazej@warwick.ac.uk>
Co-authored-by: Naveen M K <naveen521kk@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* chore(deps): add Python 3.12 support (#3395)
* chore(deps): add Python 3.11 and 3.12 support
chore(deps): update lock file
chore(deps): remove colour
fix(deps): force NumPy version
fix(deps): relax constraints
chore(deps): update lock file
* fix(deps): make poetry happy
* fix(ci): skia pathops on 3.12
* fix(test): doctest skip
* disable python 3.8 pipeline
* removed get_parameters, replaced by direct call to inspect
* black
---------
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Added ability to remove non-svg LaTeX files (#3322)
* Added ability to remove latex junk (default True)
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fixed tests (hopefully), and whitelisted .tex
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* reverted weird changes from merge
* See previous commit message
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fixed logs-too-long test
* Fixed log output
* Fixed typo ;)
* deleted unused variable
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* moved latex deletion to tex_file_writing.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* removed changes in scene files
* Added caching based on LaTeX expression .svg
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Deleted unused function in delete_old_tex
* make if condition more readable
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* cleaned up svg file check
* changed blacklist -> whitelist for file endings
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Reverted docstring change
* Updated delete_non_svg files docstring
* Changed list to a set
* Update manim/_config/utils.py
* Update manim/cli/render/global_options.py
* added one test for the no_latex_cleanup config option
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Tristan Schulz <mrdiverlp@gmail.com>
* feat: DecimalNumber() - added spacing between values and unit (#3366)
* feat: DecimalNumber() - added spacing between values and unit
* Update manim/mobject/text/numbers.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update manim/mobject/text/numbers.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update manim/mobject/text/numbers.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update manim/mobject/text/numbers.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update manim/mobject/text/numbers.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update manim/mobject/text/numbers.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update manim/mobject/text/numbers.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
---------
Co-authored-by: Tristan Schulz <mrdiverlp@gmail.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Add option to run examples directly with binder (#3427)
* Add option to run examples directly with binder
The minified JS is from
https://github.com/naveen521kk/manim-binder
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* slight style changes
* update the js file to fix on chrome
Signed-off-by: Naveen M K <naveen521kk@gmail.com>
* show the run button as an cursor
* make the video to be 100% of the width
* Update manim/utils/docbuild/manim_directive.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Add a "Make interactive" button instead of "Run" button
Clicking on the "Make interactive" button show the code-editor and "run" button
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update margin for run interactive button
---------
Signed-off-by: Naveen M K <naveen521kk@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Prepare v0.18.0 (#3439)
* generated changelog and bumped version
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* changed some PR descriptions in the changelog
* fix some docbuild warnings
* fixed a reference that became ambiguous
* copyedit pass of changelog
* some more changelog polishing
* bump release date
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* updated release date
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Fixed wrong path in action building downloadable docs (#3450)
* fixed wrong path in action building downloadable docs
* fix second occurrence of wrong path
* Allow accessing ghost vectors in :class:`.LinearTransformationScene` (#3435)
* Fix CSV reader adding empty files
Fixes issue #3311
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Added LinearTransformationScene.ghost_vectors
* Added test and prevented empty VGroups as ghost vectors
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fixed typo in example
* Added ability to join together multiple renders
* Revert "Added ability to join together multiple renders" (wrong branch)
This reverts commit dee29c390f.
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add type hints to `_config` (#3440)
* Add type hints to `_config`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix call issues
* Fix wrong value being used
* Fix test
* Fix wrong value being set
* lint
* Few type fixes
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Fix Idicate docs typo (#3461)
* Update indication.py (#3477)
reading docs, im sure oppising isnt a word
* Optimized `get_unit_normal()` and replaced `np.cross()` with custom `cross()` in `manim.utils.space_ops` (#3494)
* Added cross and optimized get_unit_normal in manim.utils.space_ops
* Added missing border case to new get_unit_normal where one vector is nonzero
* Updated test_threed.py::test_Sphere test data
* Update dependency constraints, fix deprecation warnings (#3376)
* WIP: Update metadata
* Finish removing upper bounds
Drop requests dependency, use urllib instead
order depencencies
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix issues on 3.12
* Order dev dependencies
* Update most dev deps, update lint config
* Add missing import
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* trigger CI
* More deprecation fixes
* Missing argument
* Deprecation fixes, again
* Use older xdist to fix test flakyness
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix 360° to 180° in quickstart tutorial (#3498)
* Update Docker base image to python3.12-slim (#3458) (#3459)
* Update Docker base image to python3.12-slim (#3458)
* Update docker/Dockerfile
---------
Co-authored-by: Melody Griesen <jvgriese@ncsu.edu>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* fix line_join to joint_type in example_scenes/basic.py (#3510)
* fix typo in docstring for DtUpdater example: line -> square (#3509)
* Implement caching of fonts list to improve runtime performance (#3316)
* Implement caching of fonts list to improve runtime performance
* Fix small use_svg_cache kwargs error
* replaced font list with LRU cache
* Removed deprecated new command (#3512)
Co-authored-by: Naveen M K <naveen521kk@gmail.com>
* Added `cap_style` feature to `VMobject` (#3516)
* Added cap_style feature to VMobject
* Added an example to `set_cap_style` method
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Unsplitted line 2501
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Added graphical test for cap_style
* Added vmobject_cap_styles.npz for testing cap_styles
* Removed # noqa comments from vectorized_mobject.py
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* feat(cli): optionally hide version splash (#3329)
* feat(cli): optionally hide version splash
As discussed in #3326, this PR proposes a new optional flag to hide the version splash when manim command in launched. Additionally, the splash print is now inly executed when the CLI is executed, not on module import.
After looking at the current documentation, it does not seem to change anything. I only saw that you documented a version splash for when the CLI is used, but not when the module is imported. So removing it should not break the api docs.
In the future, users can still have version information with `import manim; print(manim.__version__)`.
Closes#3326
* chore(tests): make tests pass
---------
Co-authored-by: Tristan Schulz <mrdiverlp@gmail.com>
* Reformatting the `--save_sections` output to have the format `<Scene>_<SecNum>_<SecName><extension>` (#3499)
* Worked on issue 3471, fixing rendered file names to inherit section name
* Modified file name to include section number and name
* Modified tests for file names to include number and name, in order to pass
---------
Co-authored-by: Tristan Schulz <mrdiverlp@gmail.com>
* Explain ``.Transform`` vs ``.ReplacementTransform`` in quickstart examples (#3500)
* Explained ReplacementTransform vs Transform
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Added section explaining Transform vs ReplacementTransform
* Added a->b->c example
* Clarified explanation
* Fixed Typo
* Fixed missing colon
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tristan Schulz <mrdiverlp@gmail.com>
* Fix formatting building blocks (#3515)
* Fix formatting building blocks
* Fix formatting building blocks
---------
Co-authored-by: Jason Grace <110117391+JasonGrace2282@users.noreply.github.com>
* Bump jupyter-server from 2.9.1 to 2.11.2 (#3497)
Bumps [jupyter-server](https://github.com/jupyter-server/jupyter_server) from 2.9.1 to 2.11.2.
- [Release notes](https://github.com/jupyter-server/jupyter_server/releases)
- [Changelog](https://github.com/jupyter-server/jupyter_server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jupyter-server/jupyter_server/compare/v2.9.1...v2.11.2)
---
updated-dependencies:
- dependency-name: jupyter-server
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Account for dtype in the pixel array so the maximum value stays correct in the invert function (#3493)
* fix(lib): fix
This fixes an issue where the `invert` argument would only work for `uint8` dtypes. Now the `max` value is updated according to the pixel array dtype.
Maybe we should add unit tests for that, but haven't found an obvious place to put unit tests.
* chore(ci): add basic test
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix(ci): wrong attr name
* Update tests/module/mobject/test_image.py
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Added `grid_lines` attribute to `Rectangle` to add individual styling to the grid lines (#3428)
* Added 'grid_line_stroke_width' parameter in Rectangle
* Added 'grid_lines' (VGroup) attribute to 'Rectangle' class
---------
Co-authored-by: Tristan Schulz <mrdiverlp@gmail.com>
* Fix rectangle grid properties (#3082) (#3513)
* Import for both vertical and horizontal gridlines in
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: Tristan Schulz <mrdiverlp@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Fix animations with zero runtime length to give a useful error instead of a broken pipe (#3491)
* Fix animation group not erroring when instantiated with an empty list
* Move error messages into Animation.begin()
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Added tests
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update manim/animation/animation.py
* Update manim/animation/composition.py
* Update manim/animation/animation.py
Co-authored-by: Jason Grace <110117391+JasonGrace2282@users.noreply.github.com>
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jason Grace <110117391+JasonGrace2282@users.noreply.github.com>
* fixed the stroke width issue with single color in streamlines (#3436)
* fixed the stroke width issue with single color in streamlines
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Added test for streamlines
* Added test for streamlines
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: MrDiver <mrdiverlp@gmail.com>
* Add Documentation to `.to_edge` and `to_corner` (#3408)
* Added docstrings and example renders to Mobject.to_corner() and Mobject.to_edge
* Added docstrings and example renders to Mobject.to_corner() and Mobject.to_edge
* Update manim/mobject/mobject.py
* Update manim/mobject/mobject.py
* Update manim/mobject/mobject.py
* Update manim/mobject/mobject.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update manim/mobject/mobject.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: Tristan Schulz <mrdiverlp@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Adding the ability to pass lists and generators to .play() (#3365)
* adding the ability to pass lists and generators to .play()
* fix for _AnimationBuilder
* Changed handling of generators to accept lists of generators and normal arguments at the same time
* Animation group handles generators
* Refactored into own function for reusability
* Fix typing
* Fix typing
---------
Co-authored-by: Jason Grace <110117391+JasonGrace2282@users.noreply.github.com>
* follow-up to #3491, made errors more consistent. fixes#3527
* chore(docs): add some words about Cairo 1.18 (#3530)
* chore(docs): add some words about Cairo 1.18
Closes#3521
* fix(docs): typo
* Update testing.rst
* Update testing.rst
* Fix formatting of ``MoveAlongPath`` docs (#3541)
* Remove wag method from Mobject
* Fixed MoveAlongPath
* Revert remove wag
Created a new branch with the wrong base, sorry ;)
* Fixed Animate Type-hint (#3543)
* Remove wag method from Mobject (#3539)
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
* Fix typo of `get_y_axis_label` docstring (#3547)
* Finish TODO's in ``contributing/typings.rst`` (#3545)
* Updated typing docs
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Added link for protocols
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Added object vs Any
* Fix Typo
* Rephrase TypeVar
Co-authored-by: Viicos <65306057+Viicos@users.noreply.github.com>
* Compare between tuple vs list
Co-authored-by: Viicos <65306057+Viicos@users.noreply.github.com>
* typing -> collections.abc
Co-authored-by: Viicos <65306057+Viicos@users.noreply.github.com>
* typing -> collections.abc
Co-authored-by: Viicos <65306057+Viicos@users.noreply.github.com>
* change method to attr
Co-authored-by: Viicos <65306057+Viicos@users.noreply.github.com>
* clarify object typehint
Co-authored-by: Viicos <65306057+Viicos@users.noreply.github.com>
* Fix code typo
Co-authored-by: Viicos <65306057+Viicos@users.noreply.github.com>
* Added if TYPE_CHECKING section
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix reST for inline code
* Elaborate on if TYPE_CHECKING
Co-authored-by: Viicos <65306057+Viicos@users.noreply.github.com>
* functions -> collections
Co-authored-by: Viicos <65306057+Viicos@users.noreply.github.com>
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Viicos <65306057+Viicos@users.noreply.github.com>
* Fix use of `Mobject`'s deprecated `get_*()` and `set_*()` methods in Cairo tests (#3549)
* Fix Deprecation warnings in cairo tests
* Fix animation/specialized.py
* add note in docstring of ManimColor about class constructors (#3554)
* Added support for Manim type aliases in Sphinx docs + Added new TypeAliases (#3484)
* Updated manim.typing and included TypeAliases in docs.source.conf
* Added Vector2 and reorganized manim_type_aliases
* Fixed __all__ exports for __all__ of manim
* Update manim/cli/render/global_options.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Draft of new typing docs and new autotyping directive
* Changed vertical bars to Unions
* Updated poetry.lock
* Created custom file parser for manim.typing
* Got reST parser going
* Updated autotyping and parsing
* Update parsing
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Added code_block toggle
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Added typings to directives
* Renamed Tuple to tuple in manim.typings
* Added missing docs for type aliases
* Fixed exponent typo in ManimInt
* Hyperlinks to types work - removed Module Attributes section
* Removed Unused Import
Remove ``import re``
* Added freeglut-devel to workflows for Linux
Hopefully (?) fix the GLU import error
* Fix package name
* Add support for Type Aliases section in every module - Renaming of Vector types
* Add/fix docs for directive, parser and others
* Fixed alias typo in module_parsing
* Fix decode/import bugs, fix minor details in docs
* Added missing docs for utils.docbuild and utils.testing
* Sort alphabetically entries in utilities_misc.rst
* Address review comments, add notes about Vector and hyperlinks inside definition blocks
---------
Co-authored-by: MrDiver <mrdiverlp@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: JasonGrace2282 <aarush.deshpande@gmail.com>
* Improve documentation section about contributing to docs (#3555)
* Improve section in docs about contributing to docs
* Add note about doc build command depending on the OS
* Improve section in docs about contributing to docs
* Add note about doc build command depending on the OS
* Fix wrong toctree path in docs/source/contributing/docs.rst
* Add helpful hints to `VGroup.add()` error message (#3561)
* Improve VGroup creation error message
* Use .__name__ for the type
Co-authored-by: Jason Grace <110117391+JasonGrace2282@users.noreply.github.com>
---------
Co-authored-by: Jason Grace <110117391+JasonGrace2282@users.noreply.github.com>
* exception add if new_rings is none (#3574)
* exception add if new_rings is none
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Fix typing of `Animation` (#3568)
* Add 'to be used in the future' TODOs to ManimFrame (#3553)
* Refactor `TexTemplate` (#3520)
* Refactor `TexTemplate`
* Add tests, refactor some things
* Fixed Some tests
* Move typing imports
* Fix remaining tests
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: JasonGrace2282 <aarush.deshpande@gmail.com>
Co-authored-by: Jason Grace <110117391+JasonGrace2282@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Bump github/codeql-action from 2 to 3 (#3567)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump actions/upload-artifact from 3 to 4 (#3566)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump actions/setup-python from 4 to 5 (#3565)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* updated several packages (pillow, jupyterlab, notebook, jupyterlab-lsp, jinja2, gitpython) (#3593)
* Removed -s / --save_last_frame flag from CLI arguments (#3528)
* Remove -s flag
* Make help text more verbose
* fix write_subcaption_file error when using opengl renderer (#3546)
* fix write_subcaption_file error when using opengl renderer
* Update manim/scene/scene_file_writer.py
---------
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update docker.rst to use bash from the PATH (#3582)
* fix typo in value_tracker.py (#3594)
* fix `get_arc_center()` returning reference of point (#3599)
* Add ref_class (#3598)
* Fix typehint (#3592)
* Update ci.yml (#3611)
* fix type hint of indication.py (#3613)
* Revert vector type aliases to NumPy ndarrays (#3595)
* Improve handling of specified font name (#3429)
Co-authored-by: Jason Grace <110117391+JasonGrace2282@users.noreply.github.com>
Co-authored-by: JasonGrace2282 <aarush.deshpande@gmail.com>
The proposed fix does two things :
* If the specified font is 'sans-serif' : change it to 'sans' as this is the name used in the list of fonts
* if the font name is not in the list of fonts, automatically check if the capitalized version of the font exists in the list of fonts. If not, print a warning to the user.
* Remove support for dynamic plugin imports (#3524)
* Remove call to deprecated `pkg_resources`
* Remove support for dynamic plugin imports, update plugin utilities
* fix affected tests
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* more fixes
* Last fix
* Fix import
* Update docs
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
* Run poetry lock --no-update (#3621)
* Update jupyter.rst (#3630)
Pinpoint IPython==8.21.0 for Google Colab, because more recent versions are incompatible with their runtime.
* Fix Vector3 -> Vector3D in contributing docs (#3639)
* Bump black from 23.12.1 to 24.3.0 (#3649)
Bumps [black](https://github.com/psf/black) from 23.12.1 to 24.3.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/23.12.1...24.3.0)
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump cryptography from 42.0.0 to 42.0.4 (#3629)
Bumps [cryptography](https://github.com/pyca/cryptography) from 42.0.0 to 42.0.4.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/42.0.0...42.0.4)
---
updated-dependencies:
- dependency-name: cryptography
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Code Cleanup: removing unused imports and global variables (#3620)
* Remove unused import
* More security fixes
* Remove unused global variable
* More fixes
* Revert change (actual fix would require some rewrite)
* Add exception for edge case to satisfy warning
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Stuff
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Fixing the behavior of `.become` to not modify target mobject via side effects fix color linking (#3508)
* Copied ndarray for rgbas when interpolating
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* changing .become to copy the target mobject
* change tests and test data to reflect .become new behavior
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update tests/test_graphical_units/test_mobjects.py
* removed unused copy_submobject kwarg
* added doctests and improved documentation
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Added some examples for `Mobject`/`VMobject` methods (#3641)
* Add examples to mobject+vmobject methods
* Add missing import
* Separate whitespace to point_from_proportion
* Fixes!
* Changed example of Mobject.get_color
* Remove unneccessary import
* Add in import
* Fix typehint of `Vector` direction parameter (#3640)
* Fix typehint of Vector
* Change from Vector to Point in typehint
In `TipableVMobject._pointify` it converts a 3D
list of the form [x, y, z] to a Vector3D. Therefore
the direction parameter can take lists, not just numpy arrays.
* Fix bug in :class:`.VMobjectFromSVGPath` (#3677)
* Fixes#3676
* Update manim/mobject/svg/svg_mobject.py
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
* Fixed problem and added test
---------
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
* Flake8 rule C901 is about McCabe code complexity (#3673)
* Flake8 rule C901 is about McCabe code complexity
It is not about flake8-comprehensions.
* max-complexity = 29
* Fix broken link to Poetry's installation guide in the first time contributors page (#3692)
* Fix minor grammatical errors found in the index page of the documentation (#3690)
* Fix some minor grammatical errors in the index page of the docs
* Fix grammar
* Undo uneccessary change in phrasing
* fix(LICENSE): update year (#3689)
* Remove deprecated parameters and animations (#3688)
* Remove deprecated parameters/animations
* Remove test
* Remove test data
* Attempted fix for windows cp1252 encoding failure (#3687)
* Attempt to fix windows test
* Revert "Attempt to fix windows test"
This reverts commit e31c2077cd.
* try a different fix
* maybe both fixes together?
* try adding in CI
* Update ci.yml
* Update logger_utils.py
* maybe needs a dash?
* try utf8 again
* Remove legacy_windows
* try changing test
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Try decoding after capturing bytes output
* Nicer fix
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix typo (#3696)
* Docs: fix out-dated CLI option in Manim's Output Settings (#3674)
* Docs: fix out-dated CLI option in Manim's Output Settings
* Docs: more fluent English
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
* Docs: break lines
* Docs: more fluent English
* Docs: remove a space
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
---------
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
* only do actions if try succeeded (#3694)
* Mention pixi in installation guide (#3678)
* Mention pixi in installation guide
* Update docs/source/installation/conda.rst
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Add note
---------
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Fix successive calls of :meth:`.LinearTransformationScene.apply_matrix` (#3675)
* docs: improve installation FAQ's
* I have potentially resolved the issue when in LinearTransformationScene between two animations of transforming space we invoke the self.wait()
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* added another solutions in comments, added tests and removed wrong files from git
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* yeah , i forgot to save the file xd
* fixed the test, removed the comments my in changed file
* fix test and speed up test time for test_apply_matrix
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fixed the test, removed the comments my in changed file
* fixed the test
* Revert "docs: improve installation FAQ's"
This reverts commit e53a1c8d6f.
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: JasonGrace2282 <aarush.deshpande@gmail.com>
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
* Bump actions/cache from 3 to 4 (#3607)
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
* Bump FedericoCarboni/setup-ffmpeg from 2 to 3 (#3608)
Bumps [FedericoCarboni/setup-ffmpeg](https://github.com/federicocarboni/setup-ffmpeg) from 2 to 3.
- [Release notes](https://github.com/federicocarboni/setup-ffmpeg/releases)
- [Commits](https://github.com/federicocarboni/setup-ffmpeg/compare/v2...v3)
---
updated-dependencies:
- dependency-name: FedericoCarboni/setup-ffmpeg
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump ssciwr/setup-mesa-dist-win from 1 to 2 (#3609)
Bumps [ssciwr/setup-mesa-dist-win](https://github.com/ssciwr/setup-mesa-dist-win) from 1 to 2.
- [Release notes](https://github.com/ssciwr/setup-mesa-dist-win/releases)
- [Commits](https://github.com/ssciwr/setup-mesa-dist-win/compare/v1...v2)
---
updated-dependencies:
- dependency-name: ssciwr/setup-mesa-dist-win
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* docs: update typing guidelines (#3704)
* Update typing guidelines
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix formatting
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update documentation and typings for `ParametricFunction` (#3703)
* Update documentation and typings for ParametricFunction
* Use manim tyings
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
* fix typings
* a few doc fixes
* Update manim/mobject/graphing/functions.py
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update typings
* remove extraneous line
* update example code
* add line back for comptibility
* import TYPE_CHECKING
---------
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix(copyright): automate copyright updating for docs (#3708)
* Fix some typehints in mobject.py (#3668)
* refactor(mobject): fix some typehints
* Move typing_extensions import under `if TYPE_CHECKING`
* Change from using `def animate(self: T ,...) -> T` to `def
animate(self, ...) -> Self` as stated in PEP 673
* Fix incorrect usage of `T` in a method
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* move updaters type alias into TYPE_CHECKING
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Bump idna from 3.6 to 3.7 (#3693)
Bumps [idna](https://github.com/kjd/idna) from 3.6 to 3.7.
- [Release notes](https://github.com/kjd/idna/releases)
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst)
- [Commits](https://github.com/kjd/idna/compare/v3.6...v3.7)
---
updated-dependencies:
- dependency-name: idna
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump pillow from 10.2.0 to 10.3.0 (#3672)
Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.2.0 to 10.3.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/10.2.0...10.3.0)
---
updated-dependencies:
- dependency-name: pillow
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix typo (#3721)
* Fixed `Mobject.put_start_and_end_on` with same start and end point (#3718)
* fix put_start_and_end_on() at the same point
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* [pre-commit.ci] pre-commit autoupdate (#3332)
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.6.0)
- [github.com/pycqa/isort: 5.12.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.12.0...5.13.2)
- [github.com/asottile/pyupgrade: v3.10.1 → v3.15.2](https://github.com/asottile/pyupgrade/compare/v3.10.1...v3.15.2)
- [github.com/psf/black: 23.7.0 → 24.4.0](https://github.com/psf/black/compare/23.7.0...24.4.0)
- [github.com/asottile/blacken-docs: 1.15.0 → 1.16.0](https://github.com/asottile/blacken-docs/compare/1.15.0...1.16.0)
- [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0)
- [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.5.1...v1.9.0)
- [github.com/codespell-project/codespell: v2.2.5 → v2.2.6](https://github.com/codespell-project/codespell/compare/v2.2.5...v2.2.6)
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* make smoothererstep readable again, avoid overlong line
* zoom_value more readable
* fix blacken-docs touching .github
* fix codespell setup, remove unnecessary file, fix some typos
* flake8: ignore E704, triggered by overload
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update docs/source/tutorials/quickstart.rst
* more flake fixes
* try to make blacken-docs happy
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* fix(autoaliasattr): search for type aliases under if TYPE_CHECKING (#3671)
* build(deps): read-the-docs sphinx (#3720)
* Fix issue where SpiralIn doesn't show elements. (#3589)
* Set SpiralIn to use fill_opacity 1 if not set
* Create SpiralIn control data
* Create test for SpiralIn
* Fix spiralin to separate fill and stroke opacity
* resolve opacity issue
* fix test data
---------
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Clean Graph layouts and increase flexibility (#3434)
* allow user-defined layout functions for Graph
+ fixup type annotations
* only pass relevant args
* write tests
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* change_layout forward root_vertex and partitions
- deduplicated layout code in __init__ and change_layout
- fixed change_layout backwards compatibility
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* add test for change_layout
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix copy/paste error
* fix
* fixup types for CodeQL
* static type the Layout Names
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix dynamic union type for Python 3.9
* add example scenes to LayoutFunction protocol documentation
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Replace references to np.ndarray with standard Manim types
* Label NxGraph as a TypeAlias
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tristan Schulz <mrdiverlp@gmail.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Follow-up to graph layout cleanup: improvements for tests and typing (#3728)
* suggestions from review on #3434
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Update coordinate_systems.py (#3730)
small change
* build(ci): change from macos-latest to macos-13 (#3729)
* Add ``--preview_command`` cli flag (#3615)
* Add preview_command cli flag
* Edit help for --preview_command
* Change back from subprocess.run
* Remove old comment
* Bug with timg stopped happening with sp.run
* Fix docstring
* Revert "Fix docstring"
This reverts commit d2c00fc24dc46586f994237f1d2758528b78d6a3.
* Actually fix docstring
* Change help for option
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
---------
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* AnimationGroup: optimized interpolate() and fixed alpha bug on finish() (#3542)
* Optimized AnimationGroup computation of start-end times with lag ratio
* Added extra comment for init_run_time
* Added full path to imports in composition.py
* Optimized AnimationGroup.interpolate
* Fixed final bugs
* Removed accidental print
* Final fix to AnimationGroup.interpolate
* Fixed animations being skipped unintentionally
* Addressed requested changes
---------
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Fixed ```get_anchors()``` Return Type Inconsistency (#3214)
* changed return type of get_anchors()
* Ensured consistency with OpenGLVMobject
* Fixed CodeQl, updated docstring
* Update manim/mobject/types/vectorized_mobject.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update manim/mobject/opengl/opengl_vectorized_mobject.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* fixed typo, t -> e
* fixed doctest
---------
Co-authored-by: Tristan Schulz <mrdiverlp@gmail.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
* fixed [""] being set as loaded plugins (#3734)
* Prepare new release: v0.18.1 (#3719)
* add note about changelog in changelog.rst
* bump version
* Update CITATION.cff
* feat: Add three animations that together simulate a typing animation (#3612)
* feat: Add animations that together simulate typing
AddTextLetterByLetterWithCursor
RemoveTextLetterByLetterWithCursor
Blink
* Revert "feat: Add animations that together simulate typing"
This reverts commit 5fe256880d.
* Revert "Revert "feat: Add animations that together simulate typing""
This reverts commit 6a8244a157.
* Add new animations to __all__
* Temporarily remove docs example
* Modify "Blink" and add docstring examples back in
To avoid 0-second animations, which fail docstring test
* Address requested changes
Fix imports
Remove redundant constructor arguments
Improve names
* Shorten names
* Fix release documentation building (#3737)
* [pre-commit.ci] pre-commit autoupdate (#3739)
updates:
- [github.com/psf/black: 24.4.0 → 24.4.2](https://github.com/psf/black/compare/24.4.0...24.4.2)
- [github.com/pre-commit/mirrors-mypy: v1.9.0 → v1.10.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.9.0...v1.10.0)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Fixes#3744 (#3745)
Co-authored-by: Andrzej Nagórko <>
* Bump tqdm from 4.66.1 to 4.66.3 (#3746)
Bumps [tqdm](https://github.com/tqdm/tqdm) from 4.66.1 to 4.66.3.
- [Release notes](https://github.com/tqdm/tqdm/releases)
- [Commits](https://github.com/tqdm/tqdm/compare/v4.66.1...v4.66.3)
---
updated-dependencies:
- dependency-name: tqdm
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump jinja2 from 3.1.3 to 3.1.4 (#3750)
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.3...3.1.4)
---
updated-dependencies:
- dependency-name: jinja2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Add typehints to `manim.utils.iterables` (#3751)
* typehint iterables
* organize typing hints
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* remove any
* Add overloads for tuplify
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Remove example
* feedback
* Make TypeVars accessible at runtime
* Add hints for zip
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
* typing -> collections.abc
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
* try to make mypy happy
* zip[tuple[T, ...]] instead of zip[T]
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
* Let `SceneFileWriter` access `ffmpeg` via `av` instead of via external process (#3501)
* added av as a dependency
* make partial movie files use av instead of piping to external ffmpeg
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* opengl rendering: use av for movie files
* no need to check for ffmpeg executable
* refactor: *_movie_pipe -> *_partial_movie_stream
* improve (oneline) documentation
* pass more options to partial movie file rendering
* move ffmpeg verbosity settings to config; renamed option dict
* replaced call to ffmpeg in combine_files by using av
Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* there was one examples saved as a gif?
* chore(deps): re-order av
* chore(lib): simplify `write_frame` method
Reduces the overall code complexity
* chore(lib): add audio
* fix(lib): same issue for conversion
* fix(lib): webm export
* fix(lib): transparent export
Though the output video is weird
* try(lib): fix gif + TODOs
* chore(deps): lower dep crit
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* feat(lib): add support for GIF
* fix(ci): rewrite tests
* fix
* chore(ci): prevent calling concat on empty list
* add missing dot
* fix(ci): update frame comparison ?
* fix(log): add handler to libav logger
* chore: add TODO
* fix(lib): concat issue
* Revert "fix(ci): update frame comparison ?"
This reverts commit 904cfb46ae.
* fix(ci): make it pass tests
* chore(lib/docs/ci): remove FFMPEG entirely
This removes any reference to FFMPEG, except in translation files
* added av as a dependency
* make partial movie files use av instead of piping to external ffmpeg
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* opengl rendering: use av for movie files
* no need to check for ffmpeg executable
* refactor: *_movie_pipe -> *_partial_movie_stream
* improve (oneline) documentation
* pass more options to partial movie file rendering
* move ffmpeg verbosity settings to config; renamed option dict
* replaced call to ffmpeg in combine_files by using av
Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* there was one examples saved as a gif?
* chore(deps): re-order av
* chore(lib): simplify `write_frame` method
Reduces the overall code complexity
* chore(lib): add audio
* fix(lib): same issue for conversion
* fix(lib): webm export
* fix(lib): transparent export
Though the output video is weird
* try(lib): fix gif + TODOs
* chore(deps): lower dep crit
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* feat(lib): add support for GIF
* fix(ci): rewrite tests
* fix
* chore(ci): prevent calling concat on empty list
* add missing dot
* fix(ci): update frame comparison ?
* fix(log): add handler to libav logger
* chore: add TODO
* fix(lib): concat issue
* Revert "fix(ci): update frame comparison ?"
This reverts commit 904cfb46ae.
* fix(ci): make it pass tests
* chore(lib/docs/ci): remove FFMPEG entirely
This removes any reference to FFMPEG, except in translation files
* chore(deps): update lockfile
* chore(lib): rewrite ffprobe
* fix typo
* slightly more aggressive removal of ffmpeg in docs; minor language changes
* fix gif output stream dimensions
* minor style change
* fix encoding of (transparent) mov files
* fixed metadata / comment
* set frame rate for --format=gif in output_stream
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* more video tests for different render settings, also test pix_fmt
* improve default bitrate setting via crf
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* parametrized format/transparency rendering test
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* context managers for (some) av.open
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update manim/utils/commands.py
Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>
* fixed segfault
* update test data involving implicit functions (output improved!)
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* explicity set pix_fmt for transparent webms
* special-special case extracting frame from vp9-encoded file with transparency
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix transparent gifs, more special casing in parametrized video format test
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* run tests on macos-latest again
* removed old control data
* Revert "run tests on macos-latest again"
This reverts commit f50efa4b88.
* added sound to codec test; fixed issue with sound track in gif (disabled) and webm (now via opus)
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* manual wav -> ogg transcoding
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fixed f-string
* refactored codec test, split out gif
* check for non-zero audio samples
* more cleanup
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* remove ffmpeg from readthedocs apt_packages
* round up run_time if positive and shorter than current frame rate
* added more run_time tests
* black
* improve implementation of test
* removed some unused imports
* improve wording of logged warning
Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>
* move run_time checks from Animation.begin to Scene.get_run_time
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* remove unused import
* flake: PT012
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>
* Use --py39-plus in pre-commit (#3761)
* Use --py39-plus in pre-commit
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix indication.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Optimized `manim.utils.bezier.is_closed()` (#3768)
* Optimized manim.utils.bezier.is_closed()
* oops, that shouldn't have been there
* Slightly optimized is_closed() even more
* Added doctest for is_closed()
* Created and optimized Bézier splitting functions such as `partial_bezier_points()` in `manim.utils.bezier` (#3766)
* Optimized manim.utils.partial_bezier_points()
* Added split_bezier, subdivide_bezier and bezier_remap, and tests
* Use bezier_remap() in VMobject and OpenGLVMobject()
* Note that partial_bezier_points is similar to calling split_bezier twice
* Bump requests to 2.32.0 (#3776)
updated-dependencies:
- dependency-name: requests
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix assertions and improve error messages when adding submobjects (#3756)
* Optimized AnimationGroup computation of start-end times with lag ratio
* Added extra comment for init_run_time
* Added full path to imports in composition.py
* Optimized AnimationGroup.interpolate
* Fixed final bugs
* Removed accidental print
* Final fix to AnimationGroup.interpolate
* Fixed animations being skipped unintentionally
* Fix and improve Mobject assertions when adding submobjects
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update examples in Mobject.add() and OpenGLMobject.add() docstrings
* overriden -> overridden
* Joined string in OpenGLMobject error message
* Address requested changes
* OpenGLVMObjects -> OpenGLVMobjects
* Use tuplify in VGroup.__setitem__()
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add pyproject for ruff formatting (#3777)
* Add pyproject for ruff
* add black config back
* Make only formatting
* rearrange isort to undo diff
* poetry lock
* Feedback
* style
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
---------
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
* pre-commit change to ruff (#3779)
* pre-commit change to ruff
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fixes
* astral-sh ruff bump
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Ignore Ruff format in git blame (#3781)
* Fixed `there_and_back_with_pause()` rate function behaviour with different `pause_ratio` values (#3778)
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
* Optimize VMobject methods which append to points (#3765)
* Add `@` shorthand for `CoordinateSystem` methods `coords_to_point` (`c2p`) and `point_to_coords` (`p2c`) (#3754)
* Add shorthand for axes
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add spacing
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
* Convert CoordinateSystem example, and add to NumberLine
* Add doctest for NumberLine
* Add test
* Fix typehint for c2p
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
* [pre-commit.ci] pre-commit autoupdate (#3784)
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.4 → v0.4.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.4...v0.4.5)
- [github.com/codespell-project/codespell: v2.2.6 → v2.3.0](https://github.com/codespell-project/codespell/compare/v2.2.6...v2.3.0)
* Fix typo
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: JasonGrace2282 <aarush.deshpande@gmail.com>
* [pre-commit.ci] pre-commit autoupdate (#3794)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.5 → v0.4.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.5...v0.4.7)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add Ruff Lint (#3780)
Adds Ruff Linting to CI, and replaces isort in the pre-commit config with Ruff's isort rules.
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
* Replace Pyupgrade with Ruff rule (#3795)
* Add config for pyupgrade
* Fix pyupgrade errors
* Unsafe-fixes
* Nicer way of formatting
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Revert "Nicer way of formatting"
This reverts commit 48013f4a30.
---------
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Bump tornado from 6.4 to 6.4.1 (#3796)
Bumps [tornado](https://github.com/tornadoweb/tornado) from 6.4 to 6.4.1.
- [Changelog](https://github.com/tornadoweb/tornado/blob/master/docs/releases.rst)
- [Commits](https://github.com/tornadoweb/tornado/compare/v6.4.0...v6.4.1)
---
updated-dependencies:
- dependency-name: tornado
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update opengl_vectorized_mobject.py (#3790)
The "insert_n_curves_to_point_list" function requires the "points" argument to be a numpy array, since it calls the "get_bezier_tuples_from_points" function, which requires "points" to be a numpy array because it has the "return points.reshape((-1, nppc, 3))" statement. Ordinary lists do not have a "reshape" method.
So we need to convert "sp1" and "sp2" to numpy arrays before calling the "insert_n_curves_to_point_list" function.
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
* [pre-commit.ci] pre-commit autoupdate (#3801)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.7 → v0.4.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.7...v0.4.8)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add typings to `OpenGLMobject` (#3803)
* Add typings to OpenGLMobject
* Import typing_extensions
* Add explicit returns to inner functions in .arrange_in_grid()
* Add quotes to parameters in ValueError
* Add some more typings
* Address requested changes
* Type apply_over_attr_arrays with TypeVar
* Fix use of TypeVar
* Add Vector3D typing in set_x, set_y and set_z
* fix: importing manim should not trigger pygments.styles.get_all_styles (#3797)
* fix: importing manim should not trigger pygments.styles.get_all_styles
Removed the Code.styles_list attribute.
Rewrote the documentation to say that a list of all styles can be generated by calling list(pygments.styles.get_all_styles()).
The example in the docstring of Code was rewritten to use an explicit code style name.
* fix: small change to documentation
* Added potential class method to get available code styles.
* Adding typehints to newly-added attributes.
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
* Removing unnecessary lines.
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
---------
Co-authored-by: adeshpande <110117391+JasonGrace2282@users.noreply.github.com>
* [pre-commit.ci] pre-commit autoupdate (#3809)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.8 → v0.4.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.8...v0.4.9)
- [github.com/PyCQA/flake8: 7.0.0 → 7.1.0](https://github.com/PyCQA/flake8/compare/7.0.0...7.1.0)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Bump urllib3 from 2.2.1 to 2.2.2 (#3810)
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.2.1...2.2.2)
---
updated-dependencies:
- dependency-name: urllib3
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update macos packages (#3812)
* Fixed infinite loop in OpenGL `BackgroundRectangle.get_color()` (#3732)
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
* Some fixes for interpolation
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Naveen M K <naveen521kk@gmail.com>
Co-authored-by: Holly and Prosper <45610532+rongpenl@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Naveen M K <naveen521kk@gmail.com>
Co-authored-by: Anousheh Moonen <141789878+u7481690@users.noreply.github.com>
Co-authored-by: Narahari Rao <narahari387@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Immanuel-Alvaro-Bhirawa <127812163+Immanuel-Alvaro-Bhirawa@users.noreply.github.com>
Co-authored-by: Nikhil Iyer <iyer.h.nikhil@gmail.com>
Co-authored-by: Harald Schilly <harald.schilly@gmail.com>
Co-authored-by: Tristan Schulz <mrdiverlp@gmail.com>
Co-authored-by: Alex Lembcke <alex.lembcke@gmail.com>
Co-authored-by: Viicos <65306057+Viicos@users.noreply.github.com>
Co-authored-by: Václav Blažej <6208643+vaclavblazej@users.noreply.github.com>
Co-authored-by: Václav Blažej <vaclav.blazej@warwick.ac.uk>
Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>
Co-authored-by: Uwe Zimmermann <uwe.zimmermann@sciencetronics.com>
Co-authored-by: Lawrence Qupty <80665382+Lawqup@users.noreply.github.com>
Co-authored-by: JosephD <46393716+jcep@users.noreply.github.com>
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
Co-authored-by: szchixy <szchixy@outlook.com>
Co-authored-by: Melody Griesen <pikablue107@gmail.com>
Co-authored-by: Melody Griesen <jvgriese@ncsu.edu>
Co-authored-by: yuan <yuan_xin_yu@hotmail.com>
Co-authored-by: Benjamín Ubilla <118409119+MathItYT@users.noreply.github.com>
Co-authored-by: Doaa Muhammad <126016494+doaamuham@users.noreply.github.com>
Co-authored-by: Robin Dimasin <robindimasin@gmail.com>
Co-authored-by: Paul Uhlenbruck <48606747+pauluhlenbruck@users.noreply.github.com>
Co-authored-by: Yash Mundada <F20210001@pilani.bits-pilani.ac.in>
Co-authored-by: TheMathematicFanatic <63360493+TheMathematicFanatic@users.noreply.github.com>
Co-authored-by: Václav Volhejn <8401624+vvolhejn@users.noreply.github.com>
Co-authored-by: Hydromel Victor Doledji <victorvaddely@gmail.com>
Co-authored-by: Dan Davison <dandavison7@gmail.com>
Co-authored-by: Greg Rupp <gmrupp@gmail.com>
Co-authored-by: NotWearingPants <26556598+NotWearingPants@users.noreply.github.com>
Co-authored-by: Sparsh Goenka <43041139+sparshg@users.noreply.github.com>
Co-authored-by: Said Taghadouini <84044788+staghado@users.noreply.github.com>
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: Abulafia <44573666+abul4fia@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Chin Zhe Ning <108804868+biinnnggggg@users.noreply.github.com>
Co-authored-by: HairlessVillager <64526732+HairlessVillager@users.noreply.github.com>
Co-authored-by: Pavel Zwerschke <pavelzw@gmail.com>
Co-authored-by: Sir James Clark Maxwell <71722499+SirJamesClarkMaxwell@users.noreply.github.com>
Co-authored-by: Daniel Zhu <danielfangzhu@gmail.com>
Co-authored-by: Stefano Ottolenghi <stejey@gmail.com>
Co-authored-by: MontroyJosh <122334909+MontroyJosh@users.noreply.github.com>
Co-authored-by: Greg Rupp <greg.rupp@66degrees.com>
Co-authored-by: Amirreza A <45117218+amrear@users.noreply.github.com>
Co-authored-by: Jinchu Li <63861808+JinchuLi2002@users.noreply.github.com>
Co-authored-by: VPC <111203113+VinhPhmCng@users.noreply.github.com>
Co-authored-by: anagorko <3418166+anagorko@users.noreply.github.com>
Co-authored-by: jkjkil4 <52841865+jkjkil4@users.noreply.github.com>
Co-authored-by: yang-tsao <caoyang2005@outlook.com>
Co-authored-by: Eddie Ruiz <eduardo.j.ruiz@gmail.com>
Co-authored-by: Cameron Burdgick <156892808+camburd2@users.noreply.github.com>
* Better Error and insight
* Do not use keywords as identifiers
* add_tests
* Nasty comma
* Windows does its own thing
* Use os.path.join for windows
* Do not log path
* Include Insights
* Full stop.
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* Full stop to test data.
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* make frame_comparison a part of the library
* update frames_comparison imports; move control data
* change import in documentation
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* properly split up boolean_ops tests
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* added __init__ to utils.testing
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Make point_color a positional argument in all growing animations
* Replace arc path in SpinInFromNothing with spiral path
* Add docstring to growing animations
* Fix errors reported by sphinx
* Update tests
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* creation of a test for add_fixed_in_frame_mobjects
* reseting the base image and changing some things in the test
* Refactoring in the add_fixed_in_frame_mobjects(), the github tests should pass now.
* fixing issue with text
Co-authored-by: Lucas Ricci <lucas@pop-os.localdomain>
Co-authored-by: Hugues Devimeux <36239975+huguesdevimeux@users.noreply.github.com>
* fix: issue 1811, add a test for class Broadcast
* little update in test_specialized.py file
* update
* update trying to fix the test failures
* removing a spare file
* make sure left and right endpoint of area are vertically above a, b
* fix border when bounded_graph is passed
* added test
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update get_area test, also affected by changes
* fix test data
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Added match_center parameter to :meth:`mobject.become` (#2048)
* Added match_height and match_width parameters to :meth:`mobject.become` (#2048)
* Ensured match_center works properly and just moved it after height/width
* Added match_depth and params to docstring
* Reorder depth and center
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Added stretch parameter to :meth:`mobject.become` (#2048)
* added a test for match_width / match_height / stretch
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* scaling, add differnt scalings, adjust to use x_range, adjust line movement to make it applicable
* kind of ugly solution to make coords_to_point do less pointless calculations
* refactoring and add_labels
* numberplane fix
* make functions scaling-compatible
* decimal_number scaling for the units
* docs for axes
* minor docs changes
* Pre-PR cleaning
* missing bug
* typo
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* remove redundant add_labels
* move import out of TYPE_CHECKING
* add scale to init.py
* missing underscores
* fix broken test
* fix numberplane line generation for log
* add scale.py to the docs and replace dict outout for custom_labels with a list
* add explanation and default for exclude_origin_tick
* custom labels using .add_coordinates()
* add test, valueerror warning and docs
* add .npz file and adjust docs
* add numberplane log test
* quick docs for ParametricFunction
* add extra condition because None becomes LinearBase too
* flip x and y
* add exclude_origin_tick business for z_axis
* adjust threed test
* improve docs for number line.
* add more docs
* more docs for number line
* pre-merge docs improvements
* fix return types
* attempt to fix weird formatting
* fix questionable doc choice
* l1 != li
* correct the index for 6
* correct the index for 6
Co-authored-by: Darylgolden <darylgolden@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* feat: added section class
* fix: fixed imports in scene.py
* feat: added section class
* fix: fixed imports in scene.py
* feat: scene file writer update; needs testing
* broken test
* fixed wrong partial movie files
* feat: added animation concatenation for sections
* fix: sections can contains None as partial movie file
* fix: correct section output file names
* fix: removed media folder
* feat: section output able to extract type
* feat: added guarantee_existence tests
* fix: touch file on windows
* fix: touch file on windows
* feat: automatically create control data with --set_test flag
* feat: added tests for sections output folder
* feat: added flag to enable sections
* feat: testing section metadata file
* feat: finished metadata tests; changed enums to be extendable
* fix: removed testing files
* fix: fixed section types
* fix: fixed outdated control data
* fix: fixed simple_scenes.py
* fix: fixed section type documentation example
* feat: added section video metadata to API
* fix: isort should stop destroying the import order for commands.py
* fix: fixed types of section metadata output
* fix: better comments
* ?
* feat: added elaborate test; switched name and type in next_section call
* feat: changed testing terminology: "config" got renamed to "movie metadata"
* fix: removed unicode lambda :<
* fix: fixed control data
* fix: removed test setter
* feat: added tutorial in the documentation
* fix: updated test control data
* fix: fixed double '.' in video tests
* fix: fixed some documentation
* fix: fixed missign JSON file in docs
* fix: implemented proposed changes
* fix: better --save_sections help
* fix: better docstrings
* fix: fixed last docstring...hopefully :>
* feat: custom section output supported
* fix: removed resolved todos
* fix: added debug for movie concatenation back
* fix: removed implemented TODO
* fix: removed doubled log
* fix: changed debug to info log
* fix: fixed log test data
* Rename old get_area
* Add the new get_area method
* Test file
* Revert "Test file"
This reverts commit 7588d7aba6.
* Fix the gradient coloring
* Add the bounded parameter
* Add an example and reformat the docstring
* Update get_area_with_riemann_rectangles example in the docstring
* Modify the example in the Example Gallery to use the new get_area
* Modify the test for get_area_with_riemann_rectangles and add a test for get_area
* Add the npz for the tests
* Rename bounded parameter in bounded_graph
* Make the function handle different range for graph and bounded_graph
* Use point instead of get_points()
* Make more specific tests
* Change Sequence type to Tuple
Co-authored-by: Hugues Devimeux <36239975+huguesdevimeux@users.noreply.github.com>
* Update an example to enhance the difference between both `get_area` methods
* Fix a bug not taking into acount x_range
* Change the opacity of the area in the example to better see the area
* Fix a bug for non-overlapping ranges
* Add the exception to the docstring
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Remove `get_area_with_riemann_rectangles` and fix f-strings
* Remove references to `get_riemann_rectangles`
Co-authored-by: Léo Géré <leo.gere@inrae.fr>
Co-authored-by: Léo Géré <gere@etud.insa-toulouse.fr>
Co-authored-by: Hugues Devimeux <36239975+huguesdevimeux@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Initial Progress
* pretty much done :)
* moved to class
* cleanup
* fix example, import and black
* Add skia-pathops dependency
* some docs
* Add Xor
* fix typo and remove stray print
* more docs
* remove stray example
* fix typo
* fix docs
* fix poetry
* fix typos
* Don't use SegmentIterator instead use RawPathIterator
* add tests
* black isort
* Minor cosmetics
* possibly fix tests
* small formatting changes
* small docs fix
* spacing
* Support more than 1 vmobject on Intersection
* Fix intersection of 3 or more Mobjects
* Add a test case for 3 mobject intersection
* black
* fix condition of undefined variable
* fix some typos
* Apply suggestions from code review
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* add a zoom parameter
* adding zoom trackers
* implementing zoom in three_d_scene
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* updated typing error
* added test
* updated test
Co-authored-by: Iced-Tea3 <83535735+Iced-Tea3@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: KingWampy <9156604+WampyCakes@users.noreply.github.com>
* fix set_value and add some docs
* improve font_size property for tex/text_mobject.py
* add tests
* add more font_size tests
* round test_set_value_size)
* scale based on self._font_size
* add changing_font_size test
* rewrite test and add test i forgot to add
* improve hacky solution that didn't work
* add change font_size test for tex_mobject.py
* improve tests
* split into separate test
* remove component of old test
* fix docs
* simplify the setter
* replace old with new
* dropped redundant files
* replace examples in example_Scenes
* replace opengl_ in test
* ammend __init__
* opengl_compatibilty for Surface
* make resolution a tuple for opengl compat
* resolution changes in opengl.py
* rework sphere and enable dual renderer for 3d shapes
* adjust res for Torus
* actually drop file
* flip cairo_sphere resolution
* changes
* render each submobject individually
* make BraceLabel appear
* remove if config.renderer==opengl from mobject.py
* rewrite tests
* properly deprecate ParametricSurface
* revert rendering each submobject individually
* initialize OpenGLRenderer in Scene if config.renderer is opengl
* fix bases when config.renderer is changed
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* actually push test
* remove unused bounding_box + data from mobject.py
* overwrite tests
* use #1899 to switch renderer at runtime to make tests work
* attempt at fixing tests
* add renderer=cairo at the end of the test??
* rewrite failing test
* remove self.attr = self.attr for bracelabel
* remove accidental line in test
* remove unecessary bloat and make set_fill_by_value dual compatible
* update to remove deprecation warning
* add ParametricSurface to __all__
* deprecate ParametricSurface
* change some examples
* adjust docs
Co-authored-by: Darylgolden <darylgolden@gmail.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* add docs for get_x/y_axis_label and rename first parameter
* privatize methods that need to be private
* adjust docs for axis_labels and add buff parameter
* Add documentation and typing for ComplexPlane
* update point_to_coords docs
* add get_lines_to_point
* add example for coords_to_point
* add docs for get_line_to_point
* add example for get_vert/hori_line
* privatize create_label_tex
* add example for get_axis_labels
* add examples for get_x/y_axis_label
* add example for get_graph_label
* example for riemann rectangles
* add example for input_to_graph_point
* add example for get_area and add kwargs to method
* add doctests to slope_of_tangent + angle_of_tangent
* add example for get_secant_slope_group
* add example to get_vertical_lines_to_graph
* add Examples + touch ups
* add example and warning to get_graph
* pre-PR touchups
* revert accidental changes + fix docs error
* fix doctest
* fix doctest
* switch from dosctrings to code-blocks
* attempt at fixing obscure latex error
* Apply suggestions from code review
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* formatting and general cleanup
* two typos and minor improvement
* add non-graphical tests
* add graphical tests and control data
* fix tests
* more test errors
* add get_z_axis_label
* deprecate get_center_point
* missing return statement on log_func
* Apply suggestions from code review
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* rewrite failing tests
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Update geometry.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* added test for custom tip shapes for curved arrows
* added control data
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* refactor numbers.py, numbers.py now uses font_size, adjust constants in tex_mobject.py and text_mobject, remove uses of number_scale_value in favour of font_size
* adjust PolarPlane to use font_size instead of scaling
* some of the docs have been changed to use font_size, adjust constant and add font_size to markup text
* accurate scale factors
* code mobject compatibility with font_size
* number_line now takes font_size
* make tests work
* cleanup
* deprecated test raised error, fixed
* typing for NumberLine
* fix misbehaving test
* actually fix set_value
* use native font_size scaling for text_mobject.py
* add constant and adjust BraceLabel
* fix change_label
* drop scale_factor for Title
* add some supers
* maybe fixes import issues
* numberplanetest
* the merge conflict is over and the tests run
* add test for tex_size
* some changes to the docs
* properly deprecate instead of removing
* move deprecations to __init__
* drop the config
* deprecate number_Scale_value
* update version number for deprecation
* adjust test precision
* if TYPE_CHECKING check
* adjust Using Text
* add font_size parameters for numberline and fix bug with decimal_number_config
* make set_value work with opengl
* make kwarg
* fix typo
* another typo
* change dates
* add font_size property for tex_mobjects
* _font_size instead of font_size (prep for prop)
* accidental bugfix, handle separately)
* generalize text2svg
* add font_size property for text_mobject.py
* add check for greater than 0
* Attribute error in dd_labels
* str for attr in hasattr
* rewrite and fix tests
* remove debugging print
* fix error when self.height ==0
* Apply suggestions from code review
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* revert accidental @deprecated change
* fix error in line_spacing
* slight fixes
* use private attribute when checking for font_size in add_labels()
* raise a Value error when font_size < 0 + improve docs
* Apply suggestions from code review
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* deprecate azimuth_label_scale and use more descriptive deprecation message
* wrong number of dots for an import
* add font_size property for decimalmobject
* return to using public attribute
* remove redundant constant
* add comment
Co-authored-by: Darylgolden <darylgolden@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* removed a part of code that positioned a new line graph behind the axes
* added a line graph graphical unit test
Co-authored-by: Hugues Devimeux <36239975+huguesdevimeux@users.noreply.github.com>
* Made arrow tips rotate up/down
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* rounding the doctest
* negative zeros
* Added notes on some calculations
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Angled Tip test
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Iced-Tea3 <83535735+Iced-Tea3@users.noreply.github.com>
* added parameter to reduce resolution of Dot3D
* modified dot3d class
* removed self from super().__init__ in class dot3d
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* regenerated control data for dot3d,tetra,octa,icosa,dodec
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* Added direct decoration support, and auto naming test.
* format
* Misclearnous fixes and improvements of the testing system
* Converted tests.
* Removed ununsed imports
* Added tolerance
* save frames as uint8
* regenerate control data
* migrate other tests that have been added in the meantime
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* try to make pre-commit happy
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Putting frame_center in the center of the frame
* Update the scene whenever frame_center moves.
* Make the frame_center point invisible (no stroke).
* Extending the fix for #569 to 2 similar scenarios.
* Modified CameraMoveTest, fixes to 3d cam access
* Whoops, made a mistake with a partial add
* Added docstrings, type hints
* Apply suggestions from code review
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Implementing suggestions from code review.
* Performance improvement when frame center is stationary
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* fix dashedVMobject
* add test
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* also change opengl dashed vmobject
* fix dashedline
* small fix
* remove dash_spacing
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* gitignore
* remove whitespace
* undo gitignore
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Added new function: perpendicular bisector
returns two points that form the perpendicular bisector of the points given
* Circle mobject may accept three points.
If the radius not specified, the three points may be given to form the circle.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update geometry.py
* Added docs
* perpendicular bisector can work in 3D
* add test file
* add test scene
* Update manim/mobject/geometry.py
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* changed the circle points test scene to addt
* Added docs for perp bisector function space ops
* typing error
* Made a static method for a circle from three points
* Added new test
Co-authored-by: Iced-Tea3 <83535735+Iced-Tea3@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Darylgolden <darylgolden@gmail.com>
* Added color gradient by value to parametric surfaces
* Corrected example code for documentation
* Additional adjustments to example code
* Some more adjustments to example code
* Update manim/mobject/three_dimensions.py
I'm fine with this.
Co-authored-by: Hugues Devimeux <36239975+huguesdevimeux@users.noreply.github.com>
* Added example to :class:`~.NumberLine` (#1681)
* Update number_line.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update manim/mobject/number_line.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/number_line.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/number_line.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update number_line.py
* Update manim/mobject/number_line.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update number_line.py
* Update manim/mobject/number_line.py
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Updated imports in `geometry.py` and added example to :class:`~.Arrow` (#1687)
* Updated imports in `geometry.py` and added example to :class:`~.Arrow`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update manim/mobject/geometry.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/geometry.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/geometry.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/geometry.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/geometry.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/geometry.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/geometry.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/geometry.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update geometry.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update manim/mobject/geometry.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/geometry.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Added example and parameter description to :class:`~.AnnularSector` (#1685)
* Added example and parameter description to :class:'AnnularSector'
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update manim/mobject/geometry.py
Co-authored-by: Nikhil Garuda <34582615+Nikhil0504@users.noreply.github.com>
* Update manim/mobject/geometry.py
Co-authored-by: Nikhil Garuda <34582615+Nikhil0504@users.noreply.github.com>
* Update manim/mobject/geometry.py
Co-authored-by: Nikhil Garuda <34582615+Nikhil0504@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nikhil Garuda <34582615+Nikhil0504@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Add a tutorial for using :class:`~.Text` and :class:`Tex` (#1510)
* Add a tutorial for using :class:`~.Text`
* Add gradient example
* Add disabling ligature tutorial
Move PangoMarkup to reference of MarkupText
* Add docs of using Colors, t2g and t2c
Also, fix issues issues between Color and Colour
* use save_last_frame whereever necessary
* More docs on Fonts, weights, slants
* fix docs built
* fix build
* typo
* fix build
* Try fixing the build
* Fix indent
* Fix indent
* Change class name
* Fix link
* Update examples
* Add small desc about MarkupText
* Basic LaTeX tutorials
* typo: seperately ==> separately
* add a missing `
* Update using_text.rst
* Update using_text.rst
* Update tex_mobject.py
* Update using_text.rst
* Update tex_mobject.py
* Update using_text.rst
* Update using_text.rst
* Apply suggestions from code review
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Apply suggestions from code review
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update docs/source/tutorials/using_text.rst
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* change title
* add ref to tutorial
* Fix small error
* Fix syntax
* Apply suggestions from code review (1st)
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Apply suggestions from code review
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update docs/source/tutorials/using_text.rst
* try to get link syntax right
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Added Example for :class:`~.CoordinateSystem` (#1690)
* Added Example for :class:`~.CoordinateSystem`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update coordinate_systems.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update manim/mobject/coordinate_systems.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* remove accidental font_size
* maybe fixes doc error?
* \frac
* \over (??)
* double brace syntax 🤔
* explain syntax error and proper setting of label
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Rewrite stroke and fill shaders (#1716)
Rewrite vectorized mobject shaders to be compatible with transformation matrices.
* Added Example to :class:`~.PMobject` (#1698)
* Added Example to :class:`~.PMobject`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update manim/mobject/types/point_cloud_mobject.py
Co-authored-by: Jan-Hendrik Müller <44469195+kolibril13@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jan-Hendrik Müller <44469195+kolibril13@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Exit gracefully if no scene was chosen (#1713)
* Exit gracefully if no scene was choosen
* Update module_ops.py
* Use logging system instead of print statement
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
* Update manim/utils/module_ops.py
Co-authored-by: Naveen M K <naveen521kk@gmail.com>
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: Naveen M K <naveen521kk@gmail.com>
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* Fix bug when using Text with the opengl renderer. (#1729)
* the fix
* better fix
* OpenGL compatibility via metaclass: Matrix, DecimalNumber, Variable (#1585)
* OpenGL support
* remove opengl_value_tracker
* fix flake8
* switch to relative import
* Fix inheritence graph background color (#1734)
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* docs: remove reference of `--plugins` (#1732)
`--plugins` flag isn't implemented but it was mentioned in the
documentation. I have removed it.
* [pre-commit.ci] pre-commit autoupdate (#1691)
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 21.5b2 → 21.6b0](https://github.com/psf/black/compare/21.5b2...21.6b0)
- [github.com/pycqa/isort: 5.8.0 → 5.9.1](https://github.com/pycqa/isort/compare/5.8.0...5.9.1)
- [github.com/codespell-project/codespell: v2.0.0 → v2.1.0](https://github.com/codespell-project/codespell/compare/v2.0.0...v2.1.0)
* fix typos
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* fix pillow to <8.3.0 (#1740)
* Metaclass compatibility for `coordinate_system.py`, `Code` and `ParametricSurface` (#1735)
* code metaclass
* axes metaclass
* make 3d axes and vmob work
* make code work (still bugged though)
* drop typo
* dropped period too, oops
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Added color gradient by value to parametric surfaces
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Apply suggestions from code review
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update manim/mobject/three_dimensions.py
* Revert "Update manim/mobject/three_dimensions.py"
This reverts commit bccdc67980.
* already imported, not necessary to import again
Co-authored-by: Darylgolden <darylgolden@gmail.com>
Co-authored-by: Hugues Devimeux <36239975+huguesdevimeux@users.noreply.github.com>
Co-authored-by: MathInvariance <85428162+MathInvariance@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Nikhil Garuda <34582615+Nikhil0504@users.noreply.github.com>
Co-authored-by: Naveen M K <naveen@syrusdark.website>
Co-authored-by: Devin Neal <devin@eulertour.com>
Co-authored-by: Jan-Hendrik Müller <44469195+kolibril13@users.noreply.github.com>
Co-authored-by: yit6 <70917928+yit6@users.noreply.github.com>
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: Naveen M K <naveen521kk@gmail.com>
Co-authored-by: Mohammad Al-Fetyani <m4bh@hotmail.com>
* the changes
* refactor a bit and change order of dict_merging so that it does not overwrite
* adjust test
* add docstring
* check against None
* implement the suggestion from comments + minor tweaking
* fix get_axis_labels
* adjust y_axis_label value slightly
* adjust test and refactor numberplane to remove redundant parameters
* better solution
* make .add_coordinates() file wide and nuke get_coordinate_labels
* code block
* drop uncessary assignmnets to the axes
* Apply suggestions from code review
Co-authored-by: Abhijith Muthyala <73361366+abhi3019@users.noreply.github.com>
* include_tips --> tips in the docs
Co-authored-by: Abhijith Muthyala <73361366+abhi3019@users.noreply.github.com>
* Fixed rotation of gradients while rotating VMobject
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* use rotate_vector instead of rotation_matrix
* Add docs and type hints
* fix doc
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Anton Ballmaier <aballmaier@posteo.de>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Added ArcBraceTest
* Update brace.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cut the example scene
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fixed the scaling issue where the braces seemed too big
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Updated Test file for ArcBrace
* Fixed the braces being scaled too big for small arcs
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add files via upload
* Update brace.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Added warning
* Update brace.py
* Added mathem. explanation
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Updated documentation
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update manim/mobject/svg/brace.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fixed a typo
* Update manim/mobject/svg/brace.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/svg/brace.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/svg/brace.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update manim/mobject/svg/brace.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update brace.py
* Add typing
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update manim/mobject/svg/brace.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/svg/brace.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/svg/brace.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/svg/brace.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update brace.py
* Update brace.py
* Update brace.py
* Update brace.py
* Update brace.py
* Update manim/mobject/svg/brace.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/svg/brace.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update manim/mobject/svg/brace.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* Update brace.py
* Update manim/mobject/svg/brace.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* ArcBraceTest Scene and lint
* Update test_brace.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jan-Hendrik Müller <44469195+kolibril13@users.noreply.github.com>
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>