From b4844ee9f803dee231edd1f8a5a7b04acefe131b Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Fri, 6 Jan 2012 12:49:06 -0500 Subject: [PATCH] Small changes to core map script. --- src/utils/{plot_map.py => core_map.py} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename src/utils/{plot_map.py => core_map.py} (90%) diff --git a/src/utils/plot_map.py b/src/utils/core_map.py similarity index 90% rename from src/utils/plot_map.py rename to src/utils/core_map.py index de73335f43..4b5e7f7b8a 100755 --- a/src/utils/plot_map.py +++ b/src/utils/core_map.py @@ -5,10 +5,9 @@ import sys import numpy as np import matplotlib.pyplot as pyplot -axial_level = 10 - # Get filename and file object filename = sys.argv[1] +axial_level = int(sys.argv[2]) fh = open(filename,'r') # Read size of mesh @@ -30,6 +29,8 @@ matrix = np.array([[value_dict[i+1,j+1,axial_level] for i in range(nx)] # Make figure pyplot.pcolor(matrix) pyplot.colorbar() +pyplot.xlim([0,nx]) +pyplot.ylim([0,ny]) pyplot.xticks([]) pyplot.yticks([]) pyplot.show()