bin2path 0.1.4__tar.gz → 0.1.5__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 (29) hide show
  1. {bin2path-0.1.4 → bin2path-0.1.5}/PKG-INFO +1 -1
  2. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/__init__.py +1 -1
  3. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/animate.py +8 -4
  4. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/visualize.py +9 -3
  5. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path.egg-info/PKG-INFO +1 -1
  6. {bin2path-0.1.4 → bin2path-0.1.5}/pyproject.toml +1 -1
  7. {bin2path-0.1.4 → bin2path-0.1.5}/LICENSE +0 -0
  8. {bin2path-0.1.4 → bin2path-0.1.5}/README.md +0 -0
  9. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/batch.py +0 -0
  10. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/compare.py +0 -0
  11. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/decode.py +0 -0
  12. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/encode.py +0 -0
  13. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/features.py +0 -0
  14. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/orient.py +0 -0
  15. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/path.py +0 -0
  16. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/serialize.py +0 -0
  17. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/validate.py +0 -0
  18. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path.egg-info/SOURCES.txt +0 -0
  19. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path.egg-info/dependency_links.txt +0 -0
  20. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path.egg-info/requires.txt +0 -0
  21. {bin2path-0.1.4 → bin2path-0.1.5}/bin2path.egg-info/top_level.txt +0 -0
  22. {bin2path-0.1.4 → bin2path-0.1.5}/setup.cfg +0 -0
  23. {bin2path-0.1.4 → bin2path-0.1.5}/tests/test_batch.py +0 -0
  24. {bin2path-0.1.4 → bin2path-0.1.5}/tests/test_compare.py +0 -0
  25. {bin2path-0.1.4 → bin2path-0.1.5}/tests/test_decode.py +0 -0
  26. {bin2path-0.1.4 → bin2path-0.1.5}/tests/test_encode.py +0 -0
  27. {bin2path-0.1.4 → bin2path-0.1.5}/tests/test_features.py +0 -0
  28. {bin2path-0.1.4 → bin2path-0.1.5}/tests/test_orient.py +0 -0
  29. {bin2path-0.1.4 → bin2path-0.1.5}/tests/test_serialize.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bin2path
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Transform numbers into 3D geometric paths - binary visualization
5
5
  Author: bin2path
6
6
  License-Expression: MIT
@@ -26,7 +26,7 @@ from bin2path.compare import compare
26
26
  from bin2path.validate import validate, is_valid
27
27
  from bin2path.batch import batch_encode, batch_decode
28
28
 
29
- __version__ = "0.1.4"
29
+ __version__ = "0.1.5"
30
30
  __author__ = "bin2path"
31
31
 
32
32
  __all__ = [
@@ -26,8 +26,10 @@ def animate(
26
26
  ax.set_facecolor("black")
27
27
 
28
28
  if title is None:
29
- title = f"bin2path animation: {path.metadata.original_number}"
30
- ax.set_title(title)
29
+ title = f"Animation of number {path.metadata.original_number}"
30
+ # Заголовок сверху вне области осей
31
+ fig.suptitle(title, fontsize=14, fontweight="bold", color="white", y=0.98)
32
+ fig.subplots_adjust(top=0.90)
31
33
 
32
34
  # limits
33
35
  max_range = np.max(np.abs(vertices).max(axis=0)) * 1.1
@@ -140,8 +142,10 @@ def rotate_view(
140
142
  ax.set_facecolor("black")
141
143
 
142
144
  if title is None:
143
- title = f"bin2path rotate: {path.metadata.original_number}"
144
- ax.set_title(title, color="white")
145
+ title = f"Rotation of number {path.metadata.original_number}"
146
+ # Заголовок сверху вне области осей
147
+ fig.suptitle(title, fontsize=14, fontweight="bold", color="white", y=0.98)
148
+ fig.subplots_adjust(top=0.90)
145
149
 
146
150
  max_range = np.max(np.abs(vertices).max(axis=0)) * 1.1
147
151
  ax.set_xlim([-max_range, max_range])
@@ -280,8 +280,14 @@ def visualize(
280
280
  ax.set_zlabel("Z")
281
281
 
282
282
  if title is None:
283
- title = f"bin2path: {path.metadata.original_number} (bits: {path.metadata.bits_length})"
284
- ax.set_title(title, fontsize=14, fontweight="bold")
283
+ title = (
284
+ f"Visualization of number {path.metadata.original_number} "
285
+ f"(bits: {path.metadata.bits_length})"
286
+ )
287
+ # Заголовок сверху вне области осей (через suptitle + rect в tight_layout)
288
+ title_color = "white" if dark_theme else "black"
289
+ fig.suptitle(title, fontsize=16, fontweight="bold", color=title_color, y=0.99)
290
+ fig.subplots_adjust(top=0.90)
285
291
 
286
292
  # Set viewing angle (with optional авто-подбором)
287
293
  if auto_view and len(vertices) > 1:
@@ -371,7 +377,7 @@ def visualize(
371
377
  if hide_axes:
372
378
  ax.set_axis_off()
373
379
 
374
- plt.tight_layout()
380
+ plt.tight_layout(rect=(0, 0, 1, 0.93))
375
381
 
376
382
  if save_path:
377
383
  plt.savefig(save_path, dpi=150, bbox_inches="tight", facecolor="white")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bin2path
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Transform numbers into 3D geometric paths - binary visualization
5
5
  Author: bin2path
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "bin2path"
3
- version = "0.1.4"
3
+ version = "0.1.5"
4
4
  description = "Transform numbers into 3D geometric paths - binary visualization"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
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