mirror of
				https://github.com/smyalygames/FiniteVolumeGPU.git
				synced 2025-10-31 20:17:41 +01:00 
			
		
		
		
	fix(helper): move matplotlib import to specific function
This commit is contained in:
		
							parent
							
								
									e4ab053a64
								
							
						
					
					
						commit
						e5e6ff6efc
					
				| @ -20,7 +20,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||
| """ | ||||
| 
 | ||||
| import numpy as np | ||||
| from matplotlib.colors import Normalize | ||||
| 
 | ||||
| 
 | ||||
| def gen_schlieren(rho): | ||||
| @ -46,6 +45,7 @@ def gen_vorticity(rho, rho_u, rho_v): | ||||
| 
 | ||||
| 
 | ||||
| def gen_colors(rho, rho_u, rho_v, cmap, vmax, vmin): | ||||
|     from matplotlib.colors import Normalize | ||||
|     schlieren = gen_schlieren(rho) | ||||
|     curl = gen_vorticity(rho, rho_u, rho_v) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Anthony Berg
						Anthony Berg