diplotocus 0.5.1__tar.gz → 0.6.3__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.5.1 → diplotocus-0.6.3}/PKG-INFO +1 -1
  2. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/notebooks/GUI.ipynb +1 -1
  3. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/notebooks/animations.ipynb +93 -3
  4. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/notebooks/plot_objects.ipynb +1 -0
  5. diplotocus-0.6.3/src/diplotocus/_version.py +1 -0
  6. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/animations.py +430 -116
  7. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/core.py +6 -4
  8. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus.egg-info/PKG-INFO +1 -1
  9. diplotocus-0.5.1/src/diplotocus/_version.py +0 -1
  10. {diplotocus-0.5.1 → diplotocus-0.6.3}/.gitattributes +0 -0
  11. {diplotocus-0.5.1 → diplotocus-0.6.3}/.gitignore +0 -0
  12. {diplotocus-0.5.1 → diplotocus-0.6.3}/.readthedocs.yaml +0 -0
  13. {diplotocus-0.5.1 → diplotocus-0.6.3}/LICENSE +0 -0
  14. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/Makefile +0 -0
  15. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/_static/force-light.css +0 -0
  16. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/_static/force-light.js +0 -0
  17. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/make.bat +0 -0
  18. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/requirements.txt +0 -0
  19. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/_static/Web_GUI.png +0 -0
  20. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/_static/button.svg +0 -0
  21. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/_static/demo.mp4 +0 -0
  22. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/_static/favicon.ico +0 -0
  23. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/_static/force-light.css +0 -0
  24. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/_static/force-light.js +0 -0
  25. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/_static/logo.mp4 +0 -0
  26. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/_static/logo.svg +0 -0
  27. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/api/core.rst +0 -0
  28. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/api/index.rst +0 -0
  29. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/conf.py +0 -0
  30. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/index.rst +0 -0
  31. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/notebooks/easings.ipynb +0 -0
  32. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/notebooks/index.ipynb +0 -0
  33. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/notebooks/installation.ipynb +0 -0
  34. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/notebooks/quick-start.ipynb +0 -0
  35. {diplotocus-0.5.1 → diplotocus-0.6.3}/docs/source/notebooks/timeline.ipynb +0 -0
  36. {diplotocus-0.5.1 → diplotocus-0.6.3}/logo.png +0 -0
  37. {diplotocus-0.5.1 → diplotocus-0.6.3}/pyproject.toml +0 -0
  38. {diplotocus-0.5.1 → diplotocus-0.6.3}/readme.md +0 -0
  39. {diplotocus-0.5.1 → diplotocus-0.6.3}/setup.cfg +0 -0
  40. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/GUI/GUI.html +0 -0
  41. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/GUI/__init__.py +0 -0
  42. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/GUI/app.js +0 -0
  43. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/GUI/server.py +0 -0
  44. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/GUI/src/bg.png +0 -0
  45. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/GUI/src/btn/btn_bg_Draw.png +0 -0
  46. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/GUI/src/btn/btn_bg_Morph.png +0 -0
  47. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/GUI/src/btn/btn_bg_Rotate.png +0 -0
  48. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/GUI/src/btn/btn_bg_Scale.png +0 -0
  49. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/GUI/src/btn/btn_bg_Sequence.png +0 -0
  50. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/GUI/src/btn/btn_bg_Translate.png +0 -0
  51. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/GUI/src/btn/btn_bg_Tween.png +0 -0
  52. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/GUI/src/btn/btn_bg_default.png +0 -0
  53. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/GUI/src/favicon.ico +0 -0
  54. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/GUI/src/logo_bg.png +0 -0
  55. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/GUI/style.css +0 -0
  56. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/__init__.py +0 -0
  57. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus/easings.py +0 -0
  58. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus.egg-info/SOURCES.txt +0 -0
  59. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus.egg-info/dependency_links.txt +0 -0
  60. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus.egg-info/requires.txt +0 -0
  61. {diplotocus-0.5.1 → diplotocus-0.6.3}/src/diplotocus.egg-info/top_level.txt +0 -0
  62. {diplotocus-0.5.1 → diplotocus-0.6.3}/tests/test.py +0 -0
  63. {diplotocus-0.5.1 → diplotocus-0.6.3}/tests/test10.py +0 -0
  64. {diplotocus-0.5.1 → diplotocus-0.6.3}/tests/test2.py +0 -0
  65. {diplotocus-0.5.1 → diplotocus-0.6.3}/tests/test3.py +0 -0
  66. {diplotocus-0.5.1 → diplotocus-0.6.3}/tests/test4.py +0 -0
  67. {diplotocus-0.5.1 → diplotocus-0.6.3}/tests/test5.py +0 -0
  68. {diplotocus-0.5.1 → diplotocus-0.6.3}/tests/test6.py +0 -0
  69. {diplotocus-0.5.1 → diplotocus-0.6.3}/tests/test7.py +0 -0
  70. {diplotocus-0.5.1 → diplotocus-0.6.3}/tests/test8.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diplotocus
3
- Version: 0.5.1
3
+ Version: 0.6.3
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
@@ -13,7 +13,7 @@
13
13
  "\n",
14
14
  "```{warning}\n",
15
15
  "\n",
16
- "The GUI might not be as stable as the python interface. Feel free to report any issues you encounters.\n",
16
+ "The GUI might not be as stable as the python interface and is currently lacking recently added features. Feel free to report any issues you encounter or features you want to see be added in priority.\n",
17
17
  "```\n",
18
18
  "\n",
19
19
  "When running diplotocus through this mode, you will make edit your animation through a local web page in your browser. This page communicates with a python server, which links the GUI and diplotocus objects in the background. Hence, everything you can do through python, you can do through the GUI, and vice versa.\n",
@@ -39,14 +39,14 @@
39
39
  },
40
40
  {
41
41
  "cell_type": "code",
42
- "execution_count": null,
42
+ "execution_count": 2,
43
43
  "id": "8292940a",
44
44
  "metadata": {},
45
45
  "outputs": [
46
46
  {
47
47
  "data": {
48
48
  "application/vnd.jupyter.widget-view+json": {
49
- "model_id": "e81b7a3356ae4f16a27fae17363df670",
49
+ "model_id": "2eaf909a7fe44442baed97f7da7c03ed",
50
50
  "version_major": 2,
51
51
  "version_minor": 0
52
52
  },
@@ -74,7 +74,7 @@
74
74
  "text/html": [
75
75
  "\n",
76
76
  " <video width=\"640\" height=\"360\" autoplay loop muted playsinline>\n",
77
- " <source src=\"../_static/animations/anim_translate.mp4?randId=449\" type=\"video/mp4\">\n",
77
+ " <source src=\"../_static/animations/anim_translate.mp4?randId=322\" type=\"video/mp4\">\n",
78
78
  " </video>\n",
79
79
  " "
80
80
  ],
@@ -503,6 +503,84 @@
503
503
  "tl.save_video('../_static/animations/anim_morph.mp4')"
504
504
  ]
505
505
  },
506
+ {
507
+ "cell_type": "markdown",
508
+ "id": "543e2a0d",
509
+ "metadata": {},
510
+ "source": [
511
+ "### Subdraw\n",
512
+ "\n",
513
+ "```{eval-rst}\n",
514
+ ".. automethod:: diplotocus.animations.plotObject.subdraw\n",
515
+ " :noindex:\n",
516
+ "```"
517
+ ]
518
+ },
519
+ {
520
+ "cell_type": "code",
521
+ "execution_count": 1,
522
+ "id": "46a8632c",
523
+ "metadata": {},
524
+ "outputs": [
525
+ {
526
+ "data": {
527
+ "application/vnd.jupyter.widget-view+json": {
528
+ "model_id": "9bfc289f510045839c333aefaa210fdc",
529
+ "version_major": 2,
530
+ "version_minor": 0
531
+ },
532
+ "text/plain": [
533
+ " 0%| | 0/60 [00:00<?, ?it/s]"
534
+ ]
535
+ },
536
+ "metadata": {},
537
+ "output_type": "display_data"
538
+ },
539
+ {
540
+ "data": {
541
+ "text/markdown": [
542
+ "Saved video ../_static/animations/anim_subdraw.mp4"
543
+ ],
544
+ "text/plain": [
545
+ "<IPython.core.display.Markdown object>"
546
+ ]
547
+ },
548
+ "metadata": {},
549
+ "output_type": "display_data"
550
+ },
551
+ {
552
+ "data": {
553
+ "text/html": [
554
+ "\n",
555
+ " <video width=\"640\" height=\"360\" autoplay loop muted playsinline>\n",
556
+ " <source src=\"../_static/animations/anim_subdraw.mp4?randId=2913\" type=\"video/mp4\">\n",
557
+ " </video>\n",
558
+ " "
559
+ ],
560
+ "text/plain": [
561
+ "<IPython.core.display.HTML object>"
562
+ ]
563
+ },
564
+ "metadata": {},
565
+ "output_type": "display_data"
566
+ }
567
+ ],
568
+ "source": [
569
+ "import diplotocus as dpl\n",
570
+ "import numpy as np\n",
571
+ "\n",
572
+ "x = np.linspace(0,2*np.pi,60)\n",
573
+ "y = np.cos(x)\n",
574
+ "\n",
575
+ "tl = dpl.Timeline(xlim=(-1,7),ylim=(-2,2))\n",
576
+ "\n",
577
+ "p = dpl.plot(x=x,y=y)\n",
578
+ "p.subdraw(start_index=0,end_index=5,duration=60)\n",
579
+ "\n",
580
+ "tl.animate(p)\n",
581
+ "tl.save_video('../_static/animations/anim_subdraw.mp4')"
582
+ ]
583
+ },
506
584
  {
507
585
  "cell_type": "markdown",
508
586
  "id": "7d3c9b15",
@@ -513,6 +591,12 @@
513
591
  "```{eval-rst}\n",
514
592
  ".. automethod:: diplotocus.animations.plotObject.draw\n",
515
593
  " :noindex:\n",
594
+ "```\n",
595
+ "\n",
596
+ "```{note}\n",
597
+ "\n",
598
+ "`draw()` is a shorthand animation that subdraws every datapoint from 0 to the current_frame (or reversed if `reverse=True`). It is equivalent to `subdraw('start',0)`.\n",
599
+ "\n",
516
600
  "```"
517
601
  ]
518
602
  },
@@ -591,6 +675,12 @@
591
675
  "```{eval-rst}\n",
592
676
  ".. automethod:: diplotocus.animations.plotObject.sequence\n",
593
677
  " :noindex:\n",
678
+ "```\n",
679
+ "\n",
680
+ "```{note}\n",
681
+ "\n",
682
+ "`sequence()` is a shorthand animation that only subdraws the datapoint at the current frame index (or reversed if `reverse=True`). It is equivalent to `subdraw(0,0)`.\n",
683
+ "\n",
594
684
  "```"
595
685
  ]
596
686
  },
@@ -34,6 +34,7 @@
34
34
  "- `Rectangle()`\n",
35
35
  "- `RegularPolygon()`\n",
36
36
  "- `Wedge()`\n",
37
+ "- `bar()`\n",
37
38
  "\n",
38
39
  "Their signature are the same as the [matplotlib ones](https://matplotlib.org).\n",
39
40
  "\n",
@@ -0,0 +1 @@
1
+ __version__ = "0.6.3"