Skip to content

Commit

Permalink
Merge pull request 3b1b#22 from eulertour/docs-update
Browse files Browse the repository at this point in the history
Docs update
  • Loading branch information
eulertour committed Oct 17, 2018
2 parents f680e79 + d0f4273 commit e44d4fe
Show file tree
Hide file tree
Showing 48 changed files with 2,072 additions and 464 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
group: travis_latest
language: python
cache: pip
matrix:
include:
- python: 3.7
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)
install:
- pip install --upgrade pip
- pip install -r requirements.txt
- pip install flake8
before_script:
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script:
- true # add other tests here
notifications:
on_success: change
on_failure: change # `always` will be the setting once code changes slow down
8 changes: 4 additions & 4 deletions active_projects/eola2/cramer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ def construct(self):
height=1.25,
)
system.to_corner(UL)
system.matrix_mobject.set_color_columns(X_COLOR, Y_COLOR)
system.matrix_mobject.set_column_colors(X_COLOR, Y_COLOR)
system.input_vect_mob.elements.set_color(WHITE)
system_rect = BackgroundRectangle(system, buff=MED_SMALL_BUFF)

Expand Down Expand Up @@ -1590,7 +1590,7 @@ def transform_space(self):
apply_words = TextMobject("Apply")
apply_words.add_background_rectangle()
matrix_mobject = IntegerMatrix(self.matrix)
matrix_mobject.set_color_columns(X_COLOR, Y_COLOR)
matrix_mobject.set_column_colors(X_COLOR, Y_COLOR)
matrix_mobject.add_background_rectangle()
matrix_mobject.next_to(apply_words, RIGHT)
matrix_brace = Brace(matrix_mobject, DOWN, buff=SMALL_BUFF)
Expand Down Expand Up @@ -1773,7 +1773,7 @@ def solve_for_coord(self):
denom_det_text = get_det_text(matrix_mobject_copy)
top_matrix_mobject = IntegerMatrix(new_matrix)
top_matrix_mobject.set_height(frac_matrix_height)
top_matrix_mobject.set_color_columns(X_COLOR, Y_COLOR)
top_matrix_mobject.set_column_colors(X_COLOR, Y_COLOR)
VGroup(*top_matrix_mobject.mob_matrix[:, self.index]).set_color(MAROON_B)
top_matrix_mobject.add_background_rectangle()
num_det_text = get_det_text(top_matrix_mobject)
Expand Down Expand Up @@ -1986,7 +1986,7 @@ def construct(self):
x, y, z = coords = VGroup(*list(map(TexMobject, "xyz")))
coords.set_color_by_gradient(*colors)
matrix = IntegerMatrix(np.identity(3))
matrix.set_color_columns(*colors)
matrix.set_column_colors(*colors)
det_text = get_det_text(matrix)
equals = TexMobject("=")
equals.next_to(det_text[0], LEFT)
Expand Down

0 comments on commit e44d4fe

Please sign in to comment.