Skip to content
Snippets Groups Projects
Commit 75c1e8c8 authored by 数学の武士's avatar 数学の武士
Browse files

hotfix

parent 0b93cbe2
No related branches found
No related tags found
No related merge requests found
...@@ -387,6 +387,11 @@ class Plotter: ...@@ -387,6 +387,11 @@ class Plotter:
basename1 = os.path.basename(self.filename[1]) basename1 = os.path.basename(self.filename[1])
self.title = str(basename0) + ' - ' + str(basename1) self.title = str(basename0) + ' - ' + str(basename1)
if self.ndim == 1:
self.__get_min_max_ax()
elif self.ndim == 2:
self.__get_min_max_bar()
if self.ndim == 1: if self.ndim == 1:
self.__plot() self.__plot()
elif self.ndim == 2: elif self.ndim == 2:
...@@ -396,6 +401,7 @@ class Plotter: ...@@ -396,6 +401,7 @@ class Plotter:
self.__dump() self.__dump()
def plot(self): def plot(self):
self.__get_min_max_ax()
self.__plot() self.__plot()
def ani_plot(self): def ani_plot(self):
...@@ -403,6 +409,7 @@ class Plotter: ...@@ -403,6 +409,7 @@ class Plotter:
self.__ani_plot() self.__ani_plot()
def avg_plot(self): def avg_plot(self):
self.__get_min_max_ax()
self.__avg_plot() self.__avg_plot()
def plot_contour(self): def plot_contour(self):
...@@ -417,7 +424,5 @@ class Plotter: ...@@ -417,7 +424,5 @@ class Plotter:
self.__plot_diff() self.__plot_diff()
def get_data(self): def get_data(self):
# filenames = [os.path.basename(name) for name in self.filename]
# return_data = {name : copy.deepcopy(data.data) for name, data in zip(filenames, self.file_data)}
return_data = [copy.deepcopy(data.data) for data in self.file_data] return_data = [copy.deepcopy(data.data) for data in self.file_data]
return return_data return return_data
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment