diplotocus 0.3.5__tar.gz → 0.3.6__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.3.5 → diplotocus-0.3.6}/.gitignore +2 -1
- {diplotocus-0.3.5 → diplotocus-0.3.6}/PKG-INFO +1 -1
- diplotocus-0.3.6/docs/source/_static/logo.mp4 +0 -0
- diplotocus-0.3.6/src/diplotocus/_version.py +1 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/animations.py +10 -1
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/core.py +5 -2
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus.egg-info/PKG-INFO +1 -1
- diplotocus-0.3.5/docs/source/_static/logo.mp4 +0 -0
- diplotocus-0.3.5/src/diplotocus/_version.py +0 -1
- {diplotocus-0.3.5 → diplotocus-0.3.6}/.gitattributes +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/.readthedocs.yaml +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/LICENSE +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/Makefile +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/_static/force-light.css +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/_static/force-light.js +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/make.bat +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/requirements.txt +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/Web_GUI.png +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/anim_draw.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/anim_morph.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/anim_rotate.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/anim_scale.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/anim_sequence.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/anim_translate.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/anim_tween.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/axis_alpha.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/axis_limits.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/axis_move.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/axis_zoom.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/button.svg +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/cubicBezier.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/customEase.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/demo.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInBack.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInBounce.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInCirc.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInCubic.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInElastic.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInExpo.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInOutBack.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInOutBounce.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInOutCirc.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInOutCubic.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInOutElastic.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInOutExpo.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInOutQuad.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInOutQuart.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInOutQuint.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInOutSine.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInQuad.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInQuart.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInQuint.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeInSine.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeLinear.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeOutBack.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeOutBounce.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeOutCirc.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeOutCubic.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeOutElastic.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeOutExpo.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeOutQuad.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeOutQuart.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeOutQuint.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/easeOutSine.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/favicon.ico +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/fig_height_ratio.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/fig_width_ratio.mp4 +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/force-light.css +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/force-light.js +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/_static/logo.svg +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/api/core.rst +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/api/index.rst +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/conf.py +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/index.rst +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/notebooks/GUI.ipynb +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/notebooks/animations.ipynb +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/notebooks/easings.ipynb +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/notebooks/index.ipynb +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/notebooks/installation.ipynb +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/notebooks/logo.ipynb +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/notebooks/plot_objects.ipynb +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/notebooks/quick-start.ipynb +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/docs/source/notebooks/timeline.ipynb +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/logo.png +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/pyproject.toml +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/readme.md +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/setup.cfg +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/GUI/GUI.html +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/GUI/__init__.py +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/GUI/app.js +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/GUI/server.py +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/GUI/src/bg.png +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/GUI/src/btn/btn_bg_Draw.png +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/GUI/src/btn/btn_bg_Morph.png +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/GUI/src/btn/btn_bg_Rotate.png +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/GUI/src/btn/btn_bg_Scale.png +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/GUI/src/btn/btn_bg_Sequence.png +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/GUI/src/btn/btn_bg_Translate.png +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/GUI/src/btn/btn_bg_Tween.png +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/GUI/src/btn/btn_bg_default.png +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/GUI/src/favicon.ico +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/GUI/src/logo_bg.png +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/GUI/style.css +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/__init__.py +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus/easings.py +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus.egg-info/SOURCES.txt +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus.egg-info/dependency_links.txt +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus.egg-info/requires.txt +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/src/diplotocus.egg-info/top_level.txt +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/tests/test.py +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/tests/test10.py +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/tests/test2.py +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/tests/test3.py +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/tests/test4.py +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/tests/test5.py +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/tests/test6.py +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/tests/test7.py +0 -0
- {diplotocus-0.3.5 → diplotocus-0.3.6}/tests/test8.py +0 -0
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.3.6"
|
|
@@ -1468,6 +1468,7 @@ class scatter(plotObject):
|
|
|
1468
1468
|
c = to_np_array(kwargs['c'])
|
|
1469
1469
|
if c.ndim == 1 and (len(c) == 3 or len(c) == 4) and len(c) != len(data_x) and (c <= 1).all():
|
|
1470
1470
|
kwargs['c'] = c.reshape(1,-1)
|
|
1471
|
+
|
|
1471
1472
|
self.obj = self.axis.scatter(data_x,data_y,**kwargs)
|
|
1472
1473
|
|
|
1473
1474
|
class plot(plotObject):
|
|
@@ -3061,6 +3062,9 @@ class hist2d(plotObject):
|
|
|
3061
3062
|
if 'color' in kwargs:
|
|
3062
3063
|
kwargs.pop('color')
|
|
3063
3064
|
|
|
3065
|
+
data_x = np.array(data_x).flatten()
|
|
3066
|
+
data_y = np.array(data_y).flatten()
|
|
3067
|
+
|
|
3064
3068
|
#Have to reset xlim and ylim because hist2d does not respect the imposed limits
|
|
3065
3069
|
old_xlim = self.axis.get_xlim()
|
|
3066
3070
|
old_ylim = self.axis.get_ylim()
|
|
@@ -3574,11 +3578,15 @@ class text(plotObject):
|
|
|
3574
3578
|
def function(self,data_x,data_y,s,kwargs):
|
|
3575
3579
|
if len(s) == 0:
|
|
3576
3580
|
return
|
|
3581
|
+
if isinstance(kwargs['alpha'],np.ndarray):
|
|
3582
|
+
kwargs['alpha'] = kwargs['alpha'][0]
|
|
3583
|
+
|
|
3577
3584
|
if 'fontsize' in kwargs:
|
|
3578
3585
|
fp = FontProperties(size=kwargs['fontsize'])
|
|
3586
|
+
kwargs.pop('fontsize')
|
|
3579
3587
|
else:
|
|
3580
3588
|
fp = FontProperties()
|
|
3581
|
-
tp = TextPath((
|
|
3589
|
+
tp = TextPath((0, 0), s, prop=fp)
|
|
3582
3590
|
patch = PathPatch(tp, **kwargs)
|
|
3583
3591
|
self.axis.add_patch(patch)
|
|
3584
3592
|
|
|
@@ -3591,6 +3599,7 @@ class text(plotObject):
|
|
|
3591
3599
|
T = (
|
|
3592
3600
|
transforms.Affine2D()
|
|
3593
3601
|
.scale(sx, sy)
|
|
3602
|
+
.translate(data_x, data_y)
|
|
3594
3603
|
)
|
|
3595
3604
|
patch.set_path(patch.get_path().transformed(T))
|
|
3596
3605
|
self.path = patch.get_path()
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import numpy as np
|
|
2
2
|
import subprocess,os,shlex,pickle
|
|
3
3
|
import matplotlib.pyplot as plt
|
|
4
|
-
import
|
|
4
|
+
from matplotlib.backends.backend_agg import FigureCanvasAgg
|
|
5
5
|
import warnings
|
|
6
6
|
from copy import deepcopy
|
|
7
|
-
matplotlib.use("Agg")
|
|
8
7
|
import shutil
|
|
9
8
|
try:
|
|
10
9
|
has_ipython = True
|
|
@@ -286,6 +285,7 @@ class Timeline:
|
|
|
286
285
|
for animation in plot_objects:
|
|
287
286
|
if self.x >= animation.x_max and animation.persistent == False:
|
|
288
287
|
animation.clean(animation.x_max - 2, clear_anims=False)
|
|
288
|
+
plt.close()
|
|
289
289
|
|
|
290
290
|
def wait(self,duration):
|
|
291
291
|
"""Pause the animation for a number of frames.
|
|
@@ -311,6 +311,9 @@ class Timeline:
|
|
|
311
311
|
if debug is False:
|
|
312
312
|
if os.path.isdir(self.name) == False:
|
|
313
313
|
os.makedirs(self.name)
|
|
314
|
+
|
|
315
|
+
FigureCanvasAgg(self.fig)
|
|
316
|
+
|
|
314
317
|
fn = self.name + '/' + self.name + '_{}.png'.format(self.x)
|
|
315
318
|
self.fig.savefig(fn,dpi=self.dpi,transparent=self.transparent)
|
|
316
319
|
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.3.5"
|
|
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
|
|
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
|