diplotocus 0.6.3__tar.gz → 0.6.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {diplotocus-0.6.3 → diplotocus-0.6.4}/PKG-INFO +1 -1
- diplotocus-0.6.4/src/diplotocus/_version.py +1 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/animations.py +6 -5
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus.egg-info/PKG-INFO +1 -1
- diplotocus-0.6.3/src/diplotocus/_version.py +0 -1
- {diplotocus-0.6.3 → diplotocus-0.6.4}/.gitattributes +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/.gitignore +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/.readthedocs.yaml +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/LICENSE +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/Makefile +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/_static/force-light.css +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/_static/force-light.js +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/make.bat +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/requirements.txt +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/_static/Web_GUI.png +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/_static/button.svg +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/_static/demo.mp4 +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/_static/favicon.ico +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/_static/force-light.css +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/_static/force-light.js +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/_static/logo.mp4 +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/_static/logo.svg +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/api/core.rst +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/api/index.rst +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/conf.py +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/index.rst +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/notebooks/GUI.ipynb +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/notebooks/animations.ipynb +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/notebooks/easings.ipynb +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/notebooks/index.ipynb +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/notebooks/installation.ipynb +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/notebooks/plot_objects.ipynb +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/notebooks/quick-start.ipynb +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/notebooks/timeline.ipynb +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/logo.png +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/pyproject.toml +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/readme.md +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/setup.cfg +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/GUI.html +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/__init__.py +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/app.js +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/server.py +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/bg.png +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/btn/btn_bg_Draw.png +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/btn/btn_bg_Morph.png +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/btn/btn_bg_Rotate.png +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/btn/btn_bg_Scale.png +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/btn/btn_bg_Sequence.png +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/btn/btn_bg_Translate.png +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/btn/btn_bg_Tween.png +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/btn/btn_bg_default.png +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/favicon.ico +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/logo_bg.png +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/style.css +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/__init__.py +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/core.py +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/easings.py +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus.egg-info/SOURCES.txt +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus.egg-info/dependency_links.txt +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus.egg-info/requires.txt +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus.egg-info/top_level.txt +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test.py +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test10.py +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test2.py +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test3.py +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test4.py +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test5.py +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test6.py +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test7.py +0 -0
- {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test8.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.6.4"
|
|
@@ -27,6 +27,8 @@ def dealias(mpl_obj,kwargs):
|
|
|
27
27
|
return kwargs
|
|
28
28
|
|
|
29
29
|
def to_np_array(obj):
|
|
30
|
+
if type(obj) == np.ndarray:
|
|
31
|
+
return obj
|
|
30
32
|
obj = np.array(obj)
|
|
31
33
|
if obj.ndim == 0:
|
|
32
34
|
obj = np.ravel(obj)
|
|
@@ -170,10 +172,6 @@ class plotObject:
|
|
|
170
172
|
if x < anim['delay'] or x > anim['delay'] + anim['duration']:
|
|
171
173
|
continue
|
|
172
174
|
|
|
173
|
-
#if len(data_x.shape) == 1:
|
|
174
|
-
#data_x = data_x.reshape((-1,1))
|
|
175
|
-
#data_y = data_y.reshape((-1,1))
|
|
176
|
-
|
|
177
175
|
i_min,i_max = self.get_i_min_i_max_sample(anim,x,len(data_x))
|
|
178
176
|
break
|
|
179
177
|
|
|
@@ -181,6 +179,10 @@ class plotObject:
|
|
|
181
179
|
data_x = data_x[i_min:i_max]
|
|
182
180
|
if data_y is not None:
|
|
183
181
|
data_y = data_y[i_min:i_max]
|
|
182
|
+
if data_x.shape[0] == 1:
|
|
183
|
+
data_x = data_x.reshape(-1)
|
|
184
|
+
if data_y.shape[0] == 1:
|
|
185
|
+
data_y = data_y.reshape(-1)
|
|
184
186
|
kwargs = self.resize_kwargs(kwargs,list(range(i_min,i_max)))
|
|
185
187
|
|
|
186
188
|
#Third pass to morph
|
|
@@ -2074,7 +2076,6 @@ class plot(plotObject):
|
|
|
2074
2076
|
self.mpl_obj_type = mpl.lines.Line2D
|
|
2075
2077
|
self.mpl_plot_type = plt.plot
|
|
2076
2078
|
super().__init__(easing=easing,axis=axis,*args, **kwargs)
|
|
2077
|
-
|
|
2078
2079
|
self.x = to_np_array(x)
|
|
2079
2080
|
self.y = to_np_array(y)
|
|
2080
2081
|
if self.x.size != self.y.size:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.6.3"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|