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

Version 0.2:

Start diff function
parent 22220af6
No related branches found
No related tags found
No related merge requests found
...@@ -284,6 +284,17 @@ class Plotter: ...@@ -284,6 +284,17 @@ class Plotter:
print(variable_name, end=' ') print(variable_name, end=' ')
print('\n') print('\n')
def __plot_diff(self):
if self.data[0].data.shape != self.data[1].data.shape:
print("Data dimensions do not match")
sys.exit(-1)
diff = {}
diff[self.var] = self.data[0][self.var] - self.data[1][self.var]
dim_variables = list(set(self.variable_names) - set(self.var))
def dump(self): def dump(self):
self.__dump() self.__dump()
...@@ -302,3 +313,6 @@ class Plotter: ...@@ -302,3 +313,6 @@ class Plotter:
def ani_plot_contour(self): def ani_plot_contour(self):
self.__get_min_max_bar() self.__get_min_max_bar()
self.__ani_plot_contour() self.__ani_plot_contour()
def plot_diff(self):
self.__plot_diff()
\ No newline at end of file
...@@ -3,7 +3,7 @@ import setuptools ...@@ -3,7 +3,7 @@ import setuptools
if __name__ == "__main__": if __name__ == "__main__":
setuptools.setup( setuptools.setup(
name='plotter', name='plotter',
version="0.1", version="0.2",
# install_requires=[ # install_requires=[
# "numpy>=1.23.5", # "numpy>=1.23.5",
# "matplotlib >=3.6.2", # "matplotlib >=3.6.2",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment