Changeset 2649 in lmdz_wrf
- Timestamp:
- Jun 30, 2019, 3:20:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/geometry_tools.py
r2630 r2649 69 69 70 70 ## Plotting 71 # draw_secs: Function to draw an object according to its dictionary 71 72 # paint_filled: Function to draw an object filling given sections 72 73 # plot_sphere: Function to plot an sphere and determine which standard lines will be … … 2505 2506 return fig, ax 2506 2507 2508 def draw_secs(objdic): 2509 """ Function to draw an object according to its dictionary 2510 objdic: dictionary with the parts to draw [polygon, ltype, lcol, lw] 2511 """ 2512 fname = 'draw_secs' 2513 2514 for secn in objdic.keys(): 2515 secv = objdic[secn] 2516 poly = secv[0] 2517 lt = secv[1] 2518 lc = secv[2] 2519 lw = secv[3] 2520 2521 plt.plot(poly[:,1], poly[:,0], lt, color=lc, linewdith=lw) 2522 2523 return 2524 2507 2525 def paint_filled(objdic, fillsecs): 2508 2526 """ Function to draw an object filling given sections
Note: See TracChangeset
for help on using the changeset viewer.