Changeset b3703f5 in sasmodels for sasmodels/guyou.py
- Timestamp:
- Mar 26, 2018 5:50:35 PM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- c11d09f, c462169
- Parents:
- 802c412
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/guyou.py
rd86f0fc rb3703f5 195 195 plt.plot(x, y, 'g') 196 196 197 for long in range(-limit, limit+1, step):198 x, y = guyou(scale*long , scale*long_line)197 for longitude in range(-limit, limit+1, step): 198 x, y = guyou(scale*longitude, scale*long_line) 199 199 plt.plot(x, y, 'b') 200 200 #plt.xlabel('longitude') 201 201 plt.ylabel('latitude') 202 plt.title('forward transform') 202 203 203 204 plt.subplot(212) … … 211 212 plt.xlabel('longitude') 212 213 plt.ylabel('latitude') 214 plt.title('inverse transform') 213 215 214 216 def main(): 217 """Show the Guyou transformation""" 215 218 plot_grid() 216 219 import matplotlib.pyplot as plt
Note: See TracChangeset
for help on using the changeset viewer.