Plotting 2d and 3d vectors into a 3d space can be actually fun.

Using mainly the code from Math for Programmers, I am presenting in this video an example of plotting 2d into 3d and back, using identity matrix and showing what tiny changes in it would result in the plotted area.

E.g. The following change of the identity matrix (see the added 3 and 2) would return the following plots:

1 2 3 4 5 |
#identity matrix magic_matrix = ( (1,0,3), (0,1,2), (0,0,1)) |

As you see from the caption of the plots, just by multiplying with the correct identity matrix, we can achieve a lot – moving up and down, right and left the shape in 3d. The whole trick is explained in the video below.

The code is in GitHub here:

- https://github.com/Vitosh/Math-for-Programmers/tree/master/Chapter%2005
- https://github.com/Vitosh/Python_personal/blob/master/YouTube

I hope you will enjoy the video!

Discount codes (use whatever works best) for Manning – [blvitaca22, watchcui40].