* Implement SurroundingRectangle.multiple and BackgroundRectangle.multiple
* Integrate SurroundingRectangle constructor for multiple objects into __init__
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* SurroundingRectangle now takes multiple Mobjects as positional args
* Add tests for multiple Mobjects in SurroundingRectangle
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix example that was not using keyword args for SurroundingRectangle
* Remove duplicate code from BackgroundRectangle
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add typing to manim argument of SurroundingRecrabgle constructor
Co-authored-by: Aarush Deshpande <110117391+JasonGrace2282@users.noreply.github.com>
* Remove redundant argument from test_SurroundingRectangle
Co-authored-by: Aarush Deshpande <110117391+JasonGrace2282@users.noreply.github.com>
* Remove type check from SurroundingRectangle
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix missing line issue
* resolve merge conflict
* Fix Group import
* Move Group import into the body of SurroundingRectangle
* Return type checking to SurroundingRectangle
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* small change to error message
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix missing imports
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Aarush Deshpande <110117391+JasonGrace2282@users.noreply.github.com>
Co-authored-by: JasonGrace2282 <aarush.deshpande@gmail.com>
* bump version number
* changelog generation, first pass
* fixed label mismatches, changelog generation second pass
* [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
* changelog generation, second pass
* changelog generation, third pass
* changelog generation, final pass
* updated i18n files
* update readyForTranslation
* cut down doc render time
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Added example to examples.rst
* Minor
* Update docs/source/examples.rst
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update docs/source/examples.rst
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Update docs/source/examples.rst
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Removed wait()s
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* docs: add a new example about bool ops
* [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: 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: Jan-Hendrik Müller <44469195+kolibril13@users.noreply.github.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* 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>
* 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>
* 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>
* revert NumberPlane box and minor changes to other classes
* replace width in config with x_length
* fix tests
* comment out test
* get_graph label + dot mechanics
* remove graph_label from graphscene
* port over i2gp documentation + typing
* port over angle_of_tangent + docs + typing
* fix get_projection
* get_riemann rectangles + move get_graph_label
* doc changes to i2gp
* slope of tangent and get_derivative
* adjust get_axist label to allow more than mathtex
* fix dot_config
* remove default parameters from graph_get_label
* reordering + minor doc changes
* get_secant_slope_group
* get_vertical_lines_to_graph
* add_t_label converted + example + dics + portability +
* static method
* doc touchups + bugfix in get_graph
* bring back get_graph_label in graphscene
* bring back get_graph_label in graphscene pt2
* bring back get_graph_label in graphscene pt 3
* suggestions from code review + two bug fixes + documentation edits
* hardcode width_scale_factor + edits
* added docs for label methods
* fix get_graph's t_range issue, tuple issue and spam np.array in functions.py
* forgot movbject quotes + get_Graph fix
* x_range
* add defaults for coordinate_system
* oops passed x_range not t_range for get_graph
* minor docs fix + restore width_Scale_factor
* add numbers_to_include for number_line
* added get_area, bounded_graph and blend
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix: none can be specified for get_area + minor changes
* forgot self.origin_shift
* bad at git
* minor change to numberline.py: defaults rounded + numbers_to_include removes need for include_numbers
* fix: get_projection actually works now
* fix typing
* precommit + missing import
* botched imports
* improve logic for add_numebrs, (maybe sets?)
* fix self.numbers_to_include and add tips parameter that makes tip removal easy
* update all examples which reference GraphScene
* fix indentation
* increase rects in example + make label white
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>
* new example to gallery
* added more cross links
* enhanced example
* removed complex example
* readded example
* Compatibility with Axes + minor changes
Minor changes:
colour of graph to MAROON
`Dot()` is now on top of curve
`np.linspace()` step increased so that it actually reaches the lowest point
dot created with `initial point` instead of `move_to`
`x_range` renamed to `x_space`
* fix indent
* forgot string oops
* Update docs/source/examples.rst
Co-authored-by: Naveen M K <naveen@syrusdark.website>
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* finish draft implementation
* use @wrapss to remove docs problems
* reduce complexity and add doc deprecation
* Docs deprecated_params
* add decoratos to __init__
* Add decorators to documentation
* Finish detailed docs
* Apply suggestions from code review
Co-authored-by: Naveen M K <naveen@syrusdark.website>
* change since/until/message param docs
* Mark get_callable_info and deprecation_text_component as private
* change how until is included in warning messages
* Add The to parameter descriptions
* make params docs more readable
* make redirections docs clearer
* update dependency list
* order dependencies
* update examples
* fix dependency problem
* fix duplicate problem
* change decorator version
* updated lock file
* enhance function / method separation
* fix typo and double underscores
* rename message_ and replacement_
* Change warning to custom admonition
* remove [] as default parameters
* Remove "" around type
* fix bug and move to inspect
* doc string => docstring
* rename to deprecate
* change module docstring
* change to deprecation.py
* remove tests again
* Rename decorators.py to deprecate.py
* Update poetry.lock
* Test if deprecated class outputs the correct warning when used
* Rename deprecate to deprecation
* Shorten conditional for msg, since, util
* Specify decorator arguments in test
* Add tests for since and until as arguments
* Add test for msg argument for class
* Add test for replacement argument for class
* Remove unneeded docstring in deprecated class
* Add test for deprecate method, no args
* Update docstring examples, move deprecated method outside class
* Add test for method in class, since and message args
* Add test for deprecating nested class
* Add test for deprecated method in nested class
* Test deprecation of nested function
* Test param deprecation, only params argument
* Test deprecation of single method param
* Rename single param test method name
* Fix deprecated_params docstring whitespace
* Test parameter redirection using tuple
* Update warning msgs in deprecated_params docstring
* Test parameter redirection using lambda function
* Test param redirection from many to one
* Test param redirection from one to many
* Update Top.foo to deprecate with message
* FadeIn & FadeOut overhaul and deprecations
* Adjust examples
* Add docs
* Add simple example
* handle empty docstrings
* Update poetry.lock
* Deprecate ShowCreation using decorator to test the docs
* Test docstrings
* add examples
* Update example_scenes/basic.py
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
Co-authored-by: Naveen M K <naveen@syrusdark.website>
Co-authored-by: Ricky Chon <rickychon99@gmail.com>
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
* prototype: switch from guzzle-sphinx-theme to furo
* try workaround for displaying navbar elements
* more specific css targeting
* further color adjustments
* manim-example block: larger font size
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* remove unused import
* increase font size for references
* fix hover colors
* html_title with explicit version
* [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: Jason Villanueva <a@jsonvillanueva.com>
* fix manim_directive for methods
* added ref_methods to Angle example
* black
* added new ref_methods references
* sort out ref_functions vs ref_methods in examples.rst
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* Deprecated ShowCreation in favor of Create
* Fixed Black formatting and logger error
* Fixed relative import issue of logger
* Renamed CreateThen.. calls to previous names
* Fixed __all__ classes, fixed Create inheritance
* Update manim/animation/creation.py
Move logger warning to class initializer
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
* tweak_example
* removed line
* Update docs/source/examples.rst
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
* Update docs/source/examples.rst
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* fix import: move setting __version__ to top of __init__
* add simple Dockerfile for a manim-jupyterlab container
* add section on jupyterlab in docker/readme.md
* improve Dockerfile: separate user, install manim with all extras, upgrade to python 3.8
* remove separate jupyterlab docker image, adapt readme
* add missing latex package
* include link to interactive worksheet in documentation
* Update README.md
Co-authored-by: kolibril13 <44469195+kolibril13@users.noreply.github.com>
* Allow for chaining _AnimationBuilder
* Add _AnimationBuilder.build()
* Apply docs patch
* fix play call with multiple .animate for the same mobject
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
* #added some examples to the camera scene
* #added 3 ZoomedScene examples
* #removed accidentally added files
* #added updater examples
* #added text examples
* #renamed example
* #added 3d example with other light source
* #added imagemobject examples
* # added one line of code
* # small fix
* # added 3d examples
* # added one advanced project
* fixed error
* small changes
* 3d render
* another idea with the file 3d_fix.rst
* # one more change
* some more formula examples
* fix indent
* remove reference to examples/3d_fix
* change default resolution for videos in doc to 480p30
* Apply suggestions leotrs
Co-authored-by: Leo Torres <leo@leotrs.com>
* Added credits and 3d scene changes
* # removed unnecessary lines
* # implemented lots of changes suggested be leotrs
* # updated credits
* # updated scene names
* Update docs/source/examples/shapes.rst
Co-authored-by: Leo Torres <leo@leotrs.com>
* updated credits
* updated examples entery
* Update camera_settings.rst
* changed two lines
* Update shapes.rst
* Update plots.rst
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Leo Torres <leo@leotrs.com>