🙋♂️ INFO: If you have fixes/suggestions to for this doc, please comment below.
🌟 STAR: This doc if you found this document helpful.
| <canvas id="canvas1"></canvas> | |
| <canvas id="canvas1"></canvas> | |
| <p>This is an advanced flow field example. Step-by-step process explained for beginners here: <a href='https://www.youtube.com/frankslaboratory' target='_blank'>youtube.com/frankslaboratory</a></p> | 
| #!/usr/bin/env python2 | |
| """ | |
| quicky script that compares two conda environments | |
| can be handy for debugging differences between two environments | |
| This could be made much cleaner and more flexible -- but it does the job. | |
| Please let me know if you extend or improve it. | 
| # Number of days per month. First value placeholder for indexing purposes. | |
| month_days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] | |
| def is_leap(year): | |
| """Return True for leap years, False for non-leap years.""" | |
| return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | 
| # coding: utf-8 | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| from matplotlib.pyplot import figure | |
| zt = np.arange(0,2.5,0.1) | |
| y1 = np.sin(math.pi*t) | |
| y2 = np.sin(math.pi*t+math.pi/2) | |
| y3 = np.sin(math.pi*t-math.pi/2) | |
| plt.plot(zt, y1, 'b*', zt, y2,'g^', zt, y3, 'rs') |