This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'this still needs better testing, espcially to work with numpy' | |
| 'needs to work with degrees and radians' | |
| def convert(x): | |
| 'x is a list, would like it to work with numpy' | |
| ind = x>180 | |
| for i,j in enumerate(ind): | |
| if j: | |
| l[i]-=360 | |
| return x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| def ScatterToContour(x,y, bins=[10,10]): | |
| ''' | |
| x is the x location of the points | |
| y is the y location of the points | |
| len(x) needs to equal len(y) | |
| bins determins the refinement of the histogram and line edges. | |
| All contour plot perameters (levels, ect.) are defined outside |
NewerOlder