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

Version 0.2:

Start diff function
parent 22220af6
Branches
Tags v0.2
No related merge requests found
......@@ -284,6 +284,17 @@ class Plotter:
print(variable_name, end=' ')
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):
self.__dump()
......@@ -301,4 +312,7 @@ class Plotter:
def ani_plot_contour(self):
self.__get_min_max_bar()
self.__ani_plot_contour()
\ No newline at end of file
self.__ani_plot_contour()
def plot_diff(self):
self.__plot_diff()
\ No newline at end of file
......@@ -3,7 +3,7 @@ import setuptools
if __name__ == "__main__":
setuptools.setup(
name='plotter',
version="0.1",
version="0.2",
# install_requires=[
# "numpy>=1.23.5",
# "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