Commit graph

53 commits

Author SHA1 Message Date
Irvanal Haq
64862994ac
Refactor Rotating and add docstrings to Mobject.rotate() and Rotating (#4147)
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2025-06-22 04:15:12 +00:00
Aarush Deshpande
112c99ba4a
Fix SyntaxWarnings when building the docs and bump readthedocs to Python 3.13 (#3924)
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Francisco Manríquez Novoa <49853152+chopan050@users.noreply.github.com>
2024-12-16 16:04:07 +00:00
Nemo2510
9f1f239f10
Allow :class:.SurroundingRectangle to accept multiple Mobjects (#3964)
* 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>
2024-10-29 23:30:32 +00:00
Jason Grace
f70980aa40
Add ref_class (#3598) 2024-02-01 23:27:49 +01:00
John Hammond
860ec0b6fa
Update PolygonOnAxes example (#2892)
The PolygonOnAxes example get_rectangle_corners was only using the x coordinates of the bottom left corner of the rectangle, not its y coordinate.
2022-07-22 00:35:59 +00:00
Benjamin Hackl
7870407fdc
Prepared new release, `v0.16.0` (#2863)
* 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>
2022-07-14 08:22:45 +02:00
Prismo
df1a60421e
Add example PolygonOnAxes (#2610)
* 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>
2022-03-19 13:02:25 +00:00
icedcoffeeee
c8746369e6
Renamed get_graph (and the like) to plot (#2187)
* rename to plot and deprecate old methods

* tests

* documentation

* accidental change

* updated deprecation period

* deprecate method

* updated docs examples

* update docs example

* more renaming

* more replacements

Co-authored-by: Darylgolden <darylgolden@gmail.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2021-10-31 09:55:34 +00:00
Naveen M K
221906a3a4
Add a new example about Boolean Operation (#2228)
* 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>
2021-10-31 10:49:35 +01:00
leleogere
522b83cdc7
Improved the implementation of :meth:.CoordinateSystem.get_area to work without Riemann rectangles, added new :meth:.CoordinateSystem.get_area_with_riemann_rectangles (#1990)
* 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>
2021-10-02 00:00:17 +00:00
icedcoffeeee
268da5045a
Deprecated redundant methods of Mobject (#2024)
* deprecated redundants

* remove usage of redundants

* added deprecation period

* added replacement argument

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

* added deprecation arguments

* changes occurrences

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: Darylgolden <darylgolden@gmail.com>
2021-09-15 23:00:09 +00:00
GameDungeon
94821c10d8
Flake8 Changes + Fixing Warnings (#1968)
* Warning Removal

* Flake Stuff

* HotFix

* Docs Fix

* I'm Dumb

* Docs Fix 2

* Fixing Github Requests

* Fix

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* quick fix

* Add Deprecation Warning

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Weird Pre Commit Stuff

* Quick Fix

* Quick Fix

* Fix

* Flake Fix

* [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>
2021-09-03 13:45:48 -04:00
Laith Bahodi
223c2f86d0
Drop redundant OpenGL files and add metaclass support for Surface (#1843)
* 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>
2021-08-30 20:35:25 +00:00
Laith Bahodi
f7ed88008b
Add font_size parameter for Tex and Text mobjects. (#1694)
* 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>
2021-08-26 20:16:55 -04:00
Harivinay
70041f51ae
Fixed example in gallery to allow a two-dimensional mean (#1845)
* examples-bug-1730

* Code reformated according to the suggestions - Issue #1730
2021-08-01 03:44:55 +08:00
Iced-Tea3
ed8f0a530e
Changed uv min max to uv range instead for consistency (#1731)
* Changed min max to a range instead for consistency(?)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* updated the docstring

* Update three_dimensions.py

* Update three_dimensions.py

* Update three_dimensions.py

* Update examples.rst

* Update three_dimensions.py

* Added deprecation and docs

* added import, deprecation for the rest

* typo

* escapes?

* removed unnecessary deprecated_params

* Update manim/mobject/three_dimensions.py

Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>

* Update three_dimensions.py

* Update three_dimensions.py

* Update three_dimensions.py

* Update three_dimensions.py

* opengl compatibility

* Update manim/mobject/three_dimensions.py

Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>

* Update manim/mobject/three_dimensions.py

Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>

* Update manim/mobject/three_dimensions.py

Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>

* accidental change

* color import be under type checking

* Update three_dimensions.py

* Update three_dimensions.py

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>
2021-07-06 04:36:29 -04:00
PaulCMurdoch
fb6fc7940c
Update examples.rst (#1708) 2021-06-19 02:07:29 +02:00
Laith Bahodi
8691284496
Update examples to use :class:Axes and deprecate :class:GraphScene (#1598)
* 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>
2021-05-31 12:17:15 +02:00
Jan-Hendrik Müller
0690508b58
New example for gallery and some docs refinements (#1415)
* 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>
2021-05-31 09:38:52 +02:00
Skaft
60a775714e
Adding spell checker as a pre-commit hook (#1544)
* adding codespell precommit hook

* adding codespell config file

* fixing typos

* tweaking variable names to please codespell
2021-05-21 15:43:31 +05:30
Anton Ballmaier
15261ea65b
Fading module enhancements (#1454)
* 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>
2021-05-15 16:23:47 +02:00
kolibril13
0b1bcb4629
Reduce complexity of ThreeDSurfacePlot example (#1341)
* tweaked 3d

* Update examples.rst

* Update examples.rst

* Update examples.rst

* Update docs/source/examples.rst
2021-04-27 20:42:25 +02:00
Nikhil Garuda
7c8c1cb1d9
Grammatical error corrections in documentation (#1360)
* Grammatical error correction of docs

* Update contributing.rst

* Update development.rst

* Update development.rst

* Update development.rst

* Update for_dev.rst

* Update docs/source/installation/for_dev.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>

* Update plugins.rst

* Update reporting_bugs.rst

* Update a_deeper_look.rst

* Update configuration.rst

* Update quickstart.rst

* Update building_blocks.rst

* Update testing.rst

* Update testing.rst

* Update versions.rst

* Update a_deeper_look.rst

* Update quickstart.rst

* Update quickstart.rst

* Update development.rst

* Update development.rst

* Update versions.rst

* Update versions.rst

* Update a_deeper_look.rst

* Update building_blocks.rst

* Change of complier and output format in
 "InCodeTexTemplate" to the defaults

* Reverted back

* Change of Complier and Output format

The Complier and Output format of class InCodeTexTemplate has been changed to the defaults (latex and .dvi)

* Update customtex.py

* Update building_blocks.rst

* Update building_blocks.rst

* Update a_deeper_look.rst

Co-authored-by: Darylgolden <darylgolden@gmail.com>
Co-authored-by: kilacoda <65204531+kilacoda@users.noreply.github.com>
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
2021-04-19 15:44:32 -07:00
kolibril13
57a76db678
Mutliple VauleTracker example for docs (#1342)
* example

* typo

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
2021-04-16 14:33:20 -07:00
Benjamin Hackl
4fc00f7318
Switch documentation from guzzle-sphinx-theme to furo (#1251)
* 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>
2021-04-08 20:18:02 -07:00
kolibril13
c798f152b0
removed BezierSpline form gallery (#1218)
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2021-04-02 01:27:51 +02:00
kolibril13
1c2a509913
Added :ref_methods: to the manim directive (#1209)
* 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>
2021-03-31 09:28:25 -07:00
kolibril13
90782e302a
Added rotation example to example gallery (#1204)
* added rotation example

* changed to class

Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
2021-03-31 13:38:50 +02:00
Lionel Ray
39351b0202
Deprecation: Deprecated ShowCreation in favor of Create, added logger warning (#1124)
* 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>
2021-03-23 16:13:59 +01:00
kolibril13
f52d4855c7
Docs: Added :class:~.SurroundingRectangle to example gallery (#1036)
* 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>
2021-03-22 00:55:11 +01:00
Álvaro Mondéjar
4336cbd744
Remove 'MovingCameraScene.setup' and 'MovingCameraScene.camera_frame' (#1000) 2021-02-25 14:21:15 -08:00
friedkeenan
3ad385a168
Enhancement: Migrate width/height/depth to properties (#1024)
* Migrate width/height/depth to properties

* Fix examples

* Fix typos

* Import manim for doctests

* Expect Square for doctests

* Improve docs for width/height/depth properties
2021-02-14 12:33:12 +01:00
Benjamin Hackl
60c225a191
Enhancement (of new feature): JupyterLab docker image and documentation for manim and IPython (#977)
* 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>
2021-01-31 18:24:21 +01:00
kolibril13
691db1e461
Run proofreading over the whole library (#890) 2021-01-01 17:59:12 +01:00
Devin Neal
2faa89e3d3
Allow for chaining _AnimationBuilder (#889)
* 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>
2021-01-01 16:18:26 +01:00
Devin Neal
ffd8b42d26
Add .animate attribute to mobjects (#881)
Adds a .animate attribute to mobjects to be used to animate methods.
2020-12-30 05:56:38 -08:00
kolibril13
3d293ab64b
added DashedLine and CurvesAsSubmobjects example to docs (#833)
* small reodering

* added two examples

* Apply suggestions from code review

Co-authored-by: Leo Torres <leo@leotrs.com>

* black

* black

* Update docs/source/examples.rst

* Update docs/source/examples.rst

* Update manim/mobject/geometry.py

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Update manim/mobject/types/vectorized_mobject.py

* Update manim/mobject/types/vectorized_mobject.py

* Update manim/mobject/types/vectorized_mobject.py

* Update manim/mobject/types/vectorized_mobject.py

* fix indent

* black

* stupid indent

* black

Co-authored-by: Leo Torres <leo@leotrs.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2020-12-18 09:48:25 +01:00
Aron
68e66dccf5
remove all CONFIG and all digest_config (#783)
* remove CONFIG and digest_config

* docstring fix - arrow tips have length, not tip_length

* fix divide by zero as per issue 780

* Update manim/mobject/geometry.py

Co-authored-by: kolibril13 <44469195+kolibril13@users.noreply.github.com>

* black, what else

Co-authored-by: leotrs <leo@leotrs.com>
Co-authored-by: Aron <co-bordism@gitlab / cobordism@github>
Co-authored-by: kolibril13 <44469195+kolibril13@users.noreply.github.com>
2020-12-03 17:19:57 +05:30
kolibril13
f029dbd1b0
Added copyright message to docs (#791)
* Added copyright message to docs

* Update docs/source/index.rst

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2020-11-30 14:40:00 +01:00
Philipp Imhof
b077a702ce
Fix typo in example.rst (#785) 2020-11-29 14:51:12 +01:00
kolibril13
0aa13c47ba
new logo (#725) 2020-11-18 08:20:58 -05:00
Benjamin Hackl
e51d774078
Reorganize example gallery (#687)
* reorganize example gallery
* larger heading for example gallery page
* add references to gallery examples
2020-11-17 18:45:03 -05:00
MysaaJava
1e71db40b8 Fixing documentation build errors, including the wrong logo url 2020-10-22 16:55:14 +02:00
kolibril13
61fb4f3dd6
renamed Examples to example gallery 2020-10-20 14:23:20 +02:00
Aron
d3ff3fef08
added some words to documentation LaTeX examples (#558)
* added some words to documentation LaTeX examples

* fixes

* Update docs/source/examples/tex.rst

Co-authored-by: Leo Torres <dleonardotn@gmail.com>

* Update docs/source/examples/tex.rst

Co-authored-by: Leo Torres <dleonardotn@gmail.com>

* Update docs/source/examples/tex.rst

Co-authored-by: Leo Torres <dleonardotn@gmail.com>

* Update docs/source/examples/tex.rst

Co-authored-by: Leo Torres <dleonardotn@gmail.com>

* backticks

* Update docs/source/examples/tex.rst

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Update docs/source/examples/tex.rst

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Update docs/source/examples/tex.rst

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Update docs/source/examples/tex.rst

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Update docs/source/examples/tex.rst

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Update docs/source/examples/tex.rst

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Update docs/source/examples/tex.rst

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Update docs/source/examples/tex.rst

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Update docs/source/examples/tex.rst

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* double backticks for rst literals

* Update docs/source/examples/tex.rst

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Update docs/source/examples/tex.rst

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Update docs/source/examples/tex.rst

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Merge Text and LaTeX examples

Co-authored-by: Aron Fischer <co-bordism on gitlab>
Co-authored-by: Leo Torres <dleonardotn@gmail.com>
Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2020-10-20 13:24:42 +02:00
Leo Torres
24d52672ba
Merge pull request #538 from ManimCommunity/one_more_example_chapter
Added neat projects from example_scenes folder
2020-10-14 21:42:40 -04:00
kolibril13
64d398ab4d # removed neat_projects.rst
and renamed shapes_images_positions.rst
2020-10-13 15:50:22 +02:00
Aron Fischer
cbb472eecf added LaTeX examples to documentation 2020-10-09 17:28:45 +02:00
kolibril13
5233c598ac
Bunch of more examples for the docs (#458)
* #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>
2020-10-02 16:06:01 +02:00
kolibril13
4c889ec334 # removed redundant caption 2020-09-17 11:21:22 +02:00