Commit graph

3 commits

Author SHA1 Message Date
hydrobeam
9e88b64cd4
Upgrades to CoordinateSystem and graphing. (#1161)
* coordinate_systems.py

* number_line.py

* functions.py

* forgot to remove logging

* remove mutables in UnitInterval and restore things that shouldn't have been factored out

* visual changes + add backup in case only two args are given to x_range

* test_axes.py test reworked

* test_axes.py add tips

* coordinate_system + systems test and minor update to .py

* test_functions and mini-rework of funtions.py

* black and graph_scene test

* add defaults for threeDaxes

* all tests pass, threed updates

* make graphscene functional

* formatting

* test_axes_shift fix

* fix the broken test_axes_shift and docs

* forgot negative in docs

* missing commas

* fix broken example in graphscene.py

* forgot comma... again

* line_projection, import cleanup, and variable cleanup

* get_tick_range all numbers

* revert examples.rst

* restore GraphScene, deprecate it, introduce OldNumberLine

* rever test_axes_shift.py

* test_graphscene_reverted

* poetry error

* test_coord_system fix (?)

* unecssary import in graphscene

* black

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

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

* fix tests (?)

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

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

* add rounding for default coord_range + projection docs

* adjust test for rounding

* add zero fix

* used wrong fix

* set_length instead of rescale_to_fit

* fix improper coordinates for default NumberPlane

* update test

* adjust defaults for NumberLine and introduce dynamic scaling

* test adjusted

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

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

* explanations + create axis docs

* parameters for NumberLine`

* NumberPlane documentation mods

* ThreeDAxes docs

* all done

* add colon for docs

* switch oldNUmberLine to NumberLineOld

* docs update for NumberLineOld

* Update manim/mobject/number_line.py

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

* Update manim/mobject/number_line.py

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

* Update manim/mobject/number_line.py

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

* suggestions from code review

* missing period

* adjust wording for create_axis

* fix merge conflict (?)

* [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>
2021-04-30 20:40:51 +02:00
Benjamin Hackl
7b5d29e9b3
Fix random pipeline TeX failures (#1296)
* try to free us from curse of horse and cucumber

* adapt control data
2021-04-09 10:28:13 +02:00
Benjamin Hackl
e16f9a6cc4
Basic implementation of undirected graphs (#861)
* toying around with a graph using networkx layouting

* basic implementation and documentation of a class for undirected graphs

* import graph module into global namespace

* add graph module to documentation

* poetry: add networkx as a dependency

* remove some debug prints

* sort all extracted mobjects w.r.t. z_index

* add test for z_index (from #327)

* more complex z_index test

* black

* improve imports

* use z_index to have edges below vertices

* add type hints

* rename some tests to make space for graph tests

* fix problem with manual positioning

* add test

* black

* new animate syntax

* document label_fill_color
2020-12-31 21:10:41 +01:00