Changeset 2531 in lmdz_wrf
- Timestamp:
- May 12, 2019, 12:06:14 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/geometry_tools.py
r2530 r2531 59 59 # zisland1: Function to draw an island from z-axis as the union of a series of points by 60 60 # circular segments 61 61 62 ## Plotting 63 # paint_filled: Function to draw an object filling given sections 62 64 # plot_sphere: Function to plot an sphere and determine which standard lines will be 63 65 # also drawn … … 1512 1514 1513 1515 return fig, ax 1516 1517 def paint_filled(objdic, fillsecs): 1518 """ Function to draw an object filling given sections 1519 objdic: dictionary of the object 1520 filesecs: list of sections to be filled 1521 """ 1522 fname = 'paint_filled' 1523 1524 Nsecs = len(fillsecs) 1525 1526 for secn in fillsecs: 1527 secvals=objdic[secn] 1528 pvals = secvals[0] 1529 plt.fill(pvals[:,1], pvals[:,0], color=secvals[2]) 1530 1531 return 1532
Note: See TracChangeset
for help on using the changeset viewer.