36 Commits

Author SHA1 Message Date
744e695340 Misc. clean up (#2269)
* Comment tweak

* Directly print traceback

Since the shell.showtraceback is giving some issues

* Make InteracrtiveSceneEmbed into a class

This way it can keep track of it's internal shell; use of get_ipython has a finicky relationship with reloading.

* Move remaining checkpoint_paste logic into scene_embed.py

This involved making a few context managers for Scene: temp_record, temp_skip, temp_progress_bar, which seem useful in and of themselves.

* Change null key to be the empty string

* Ensure temporary svg paths for Text are deleted

* Remove unused dict_ops.py functions

* Remove break_into_partial_movies from file_writer configuration

* Rewrite guarantee_existence using Path

* Clean up SceneFileWriter

It had a number of vestigial functions no longer used, and some setup that could be made more organized.

* Remove --save_pngs CLI arg (which did nothing)

* Add --subdivide CLI arg

* Remove add_extension_if_not_present

* Remove get_sorted_integer_files

* Have find_file return Path

* Minor clean up

* Clean up num_tex_symbols

* Fix find_file

* Minor cleanup for extract_scene.py

* Add preview_frame_while_skipping option to scene config

* Use shell.showtraceback function

* Move keybindings to config, instead of in-place constants

* Replace DEGREES -> DEG
2024-12-12 08:39:54 -08:00
5d3f730824 Cleaning up some imports + Minor Bug fixed in VectorField (#2253)
* cleaning up imports

* sample_points -> sample_coords
2024-12-05 14:42:46 -08:00
f5d1a9c449 Keep track of original float matrix in DecimalMatrix 2024-03-25 19:10:42 -03:00
a5f2ac689f Spacing 2024-03-07 08:40:10 -03:00
7b577e9fc1 Have matrix keep track of elements and ellipses as lists instead of VGroups 2024-02-13 14:52:16 -06:00
578427543c Add defaults for Matrix object to have ellipses 2024-02-09 17:48:02 -06:00
45f8ca7643 Specify output type for DecimalMatrix.element_to_mobject 2024-02-08 14:44:12 -06:00
855ef9be8d Refactor Matrix, DecimalMatrix, MobjectMatrix, etc. 2024-01-18 11:12:42 -06:00
4ec2e8b0c5 Merge branch 'master' of github.com:3b1b/manim into video-work 2023-02-02 11:22:58 -08:00
ab6a7df4af Use typing_extensions to import Self for python versions <3.11 2023-02-02 10:54:47 -08:00
9ef14c7260 Change default h_buff on Matrix 2023-02-01 11:38:54 -08:00
74a11bb05c Add Self type to matrix.py 2023-01-31 14:13:47 -08:00
cc9a4501ad Have **kwargs in matrix pass on to elements 2022-12-28 19:40:02 -08:00
33682b7199 MTex is the new Tex, Tex is now OldTex
Global replace
Tex -> OldTex
TexText -> OldTexText
MTex -> Tex
MTexText -> TexText
2022-12-21 13:18:20 -08:00
6d5b980d4a Replace Tex and MTex throughout library 2022-12-20 15:22:34 -08:00
0433cd727c Tweak type hints in matrix.py 2022-12-18 09:38:46 -08:00
dec11a4b17 Rename np_vector type to Vect3 or Vect4 to make context clearer 2022-12-16 20:35:26 -08:00
43fd5e1aea Move custom type to manimlib.typing 2022-12-16 20:19:18 -08:00
a7d7ed0793 Kill CONFIG, and slightly refactor, matrix.py 2022-12-15 20:09:52 -08:00
958002152e Define ManimColor type in constants 2022-12-14 10:55:32 -08:00
f878537814 Don't have Matrix try to convert lists of Mobject into numpy arrays
https://github.com/3b1b/manim/issues/1878
2022-11-03 16:31:19 -07:00
9ef9961d0e Sort imports 2022-04-12 19:19:59 +08:00
4fbe948b63 style: insert an empty line after import 2022-02-16 21:08:25 +08:00
4c16bfc2c0 chore: add type hints to manimlib.mobject 2022-02-15 14:37:15 +08:00
f9351536e4 minor fixes (#1737) 2022-02-13 11:12:41 +08:00
cfd362aa56 Update matrix.py 2021-10-12 09:04:30 +08:00
82658e1db3 Change default element alignment for integer matrices 2021-03-31 23:25:43 -07:00
7f47815230 Change some defaults and add Matrix.get_rows method 2021-03-27 11:56:58 -07:00
52baf5b7c2 Change matrix entry alignment default 2021-03-23 08:46:13 -07:00
f91c81dd6a Rename TexMobject -> Tex and TextMobject -> TexText 2021-01-18 08:20:14 -10:00
2e3a112ff8 Treat Matrix.mob_matrix as list rather than numpy matrix, since it sometimes interprets mobjects as sequences 2021-01-13 09:20:11 -10:00
821857afa8 Fixed braces on Matrix 2020-08-30 16:00:59 -07:00
ee04922400 Add options for bracket spacing in Matrix 2019-03-24 11:33:23 -07:00
5a88ad2933 Fix get_det_text 2019-03-16 22:12:31 -07:00
5c79d80187 Fix to Matrix 2019-03-13 05:20:56 -07:00
3543a750ba move library code into manimlib, replace relative imports with absolute imports 2018-12-26 20:57:01 -08:00