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.
Files changed (70) hide show
  1. {diplotocus-0.6.3 → diplotocus-0.6.4}/PKG-INFO +1 -1
  2. diplotocus-0.6.4/src/diplotocus/_version.py +1 -0
  3. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/animations.py +6 -5
  4. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus.egg-info/PKG-INFO +1 -1
  5. diplotocus-0.6.3/src/diplotocus/_version.py +0 -1
  6. {diplotocus-0.6.3 → diplotocus-0.6.4}/.gitattributes +0 -0
  7. {diplotocus-0.6.3 → diplotocus-0.6.4}/.gitignore +0 -0
  8. {diplotocus-0.6.3 → diplotocus-0.6.4}/.readthedocs.yaml +0 -0
  9. {diplotocus-0.6.3 → diplotocus-0.6.4}/LICENSE +0 -0
  10. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/Makefile +0 -0
  11. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/_static/force-light.css +0 -0
  12. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/_static/force-light.js +0 -0
  13. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/make.bat +0 -0
  14. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/requirements.txt +0 -0
  15. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/_static/Web_GUI.png +0 -0
  16. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/_static/button.svg +0 -0
  17. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/_static/demo.mp4 +0 -0
  18. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/_static/favicon.ico +0 -0
  19. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/_static/force-light.css +0 -0
  20. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/_static/force-light.js +0 -0
  21. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/_static/logo.mp4 +0 -0
  22. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/_static/logo.svg +0 -0
  23. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/api/core.rst +0 -0
  24. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/api/index.rst +0 -0
  25. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/conf.py +0 -0
  26. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/index.rst +0 -0
  27. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/notebooks/GUI.ipynb +0 -0
  28. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/notebooks/animations.ipynb +0 -0
  29. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/notebooks/easings.ipynb +0 -0
  30. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/notebooks/index.ipynb +0 -0
  31. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/notebooks/installation.ipynb +0 -0
  32. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/notebooks/plot_objects.ipynb +0 -0
  33. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/notebooks/quick-start.ipynb +0 -0
  34. {diplotocus-0.6.3 → diplotocus-0.6.4}/docs/source/notebooks/timeline.ipynb +0 -0
  35. {diplotocus-0.6.3 → diplotocus-0.6.4}/logo.png +0 -0
  36. {diplotocus-0.6.3 → diplotocus-0.6.4}/pyproject.toml +0 -0
  37. {diplotocus-0.6.3 → diplotocus-0.6.4}/readme.md +0 -0
  38. {diplotocus-0.6.3 → diplotocus-0.6.4}/setup.cfg +0 -0
  39. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/GUI.html +0 -0
  40. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/__init__.py +0 -0
  41. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/app.js +0 -0
  42. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/server.py +0 -0
  43. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/bg.png +0 -0
  44. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/btn/btn_bg_Draw.png +0 -0
  45. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/btn/btn_bg_Morph.png +0 -0
  46. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/btn/btn_bg_Rotate.png +0 -0
  47. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/btn/btn_bg_Scale.png +0 -0
  48. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/btn/btn_bg_Sequence.png +0 -0
  49. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/btn/btn_bg_Translate.png +0 -0
  50. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/btn/btn_bg_Tween.png +0 -0
  51. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/btn/btn_bg_default.png +0 -0
  52. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/favicon.ico +0 -0
  53. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/src/logo_bg.png +0 -0
  54. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/GUI/style.css +0 -0
  55. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/__init__.py +0 -0
  56. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/core.py +0 -0
  57. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus/easings.py +0 -0
  58. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus.egg-info/SOURCES.txt +0 -0
  59. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus.egg-info/dependency_links.txt +0 -0
  60. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus.egg-info/requires.txt +0 -0
  61. {diplotocus-0.6.3 → diplotocus-0.6.4}/src/diplotocus.egg-info/top_level.txt +0 -0
  62. {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test.py +0 -0
  63. {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test10.py +0 -0
  64. {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test2.py +0 -0
  65. {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test3.py +0 -0
  66. {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test4.py +0 -0
  67. {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test5.py +0 -0
  68. {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test6.py +0 -0
  69. {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test7.py +0 -0
  70. {diplotocus-0.6.3 → diplotocus-0.6.4}/tests/test8.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diplotocus
3
- Version: 0.6.3
3
+ Version: 0.6.4
4
4
  Summary: A python package to generate animations of matplotlib objects.
5
5
  Author-email: Tristan Boin <tristan.boin@obspm.fr>
6
6
  License-Expression: MIT
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diplotocus
3
- Version: 0.6.3
3
+ Version: 0.6.4
4
4
  Summary: A python package to generate animations of matplotlib objects.
5
5
  Author-email: Tristan Boin <tristan.boin@obspm.fr>
6
6
  License-Expression: MIT
@@ -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