From 39436ea6d9a4a5960a837551c9fd5777590b0e11 Mon Sep 17 00:00:00 2001 From: m Date: Sat, 22 Feb 2020 00:25:36 +0100 Subject: [PATCH] foo --- fdtd.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fdtd.py b/fdtd.py index 8d65f85..2d6eb0b 100755 --- a/fdtd.py +++ b/fdtd.py @@ -1,15 +1,15 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python # -*- coding: utf-8 -*- # From the Meep tutorial: plotting permittivity and fields of a bent waveguide from __future__ import division import meep as mp -import matplotlib.pyplot as plt +#import matplotlib.pyplot as plt import os import sys import numpy as np -from matplotlib import cm +#from matplotlib import cm import pygame mp.quiet(True) @@ -67,12 +67,12 @@ def get_slice(sim): def plot_dielectric(sim): val = sim.get_array(center=mp.Vector3(), size=cell, component=mp.Dielectric, arr=buffer) - plt.figure() - plt.imshow(val, interpolation='none', cmap='RdBu') + #plt.figure() + #plt.imshow(val, interpolation='none', cmap='RdBu') #plt.axis('off') - plt.show() - print() + #plt.show() + #print() #sim.run(mp.at_beginning(plot_dielectric), mp.at_every(0.6, get_slice), until=200) -sim.run(mp.at_every(0.00001, get_slice), until=1000) \ No newline at end of file +sim.run(mp.at_every(0.00001, get_slice), until=1000)