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.
- {bin2path-0.1.4 → bin2path-0.1.5}/PKG-INFO +1 -1
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/__init__.py +1 -1
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/animate.py +8 -4
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/visualize.py +9 -3
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path.egg-info/PKG-INFO +1 -1
- {bin2path-0.1.4 → bin2path-0.1.5}/pyproject.toml +1 -1
- {bin2path-0.1.4 → bin2path-0.1.5}/LICENSE +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/README.md +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/batch.py +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/compare.py +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/decode.py +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/encode.py +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/features.py +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/orient.py +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/path.py +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/serialize.py +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path/validate.py +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path.egg-info/SOURCES.txt +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path.egg-info/dependency_links.txt +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path.egg-info/requires.txt +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/bin2path.egg-info/top_level.txt +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/setup.cfg +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/tests/test_batch.py +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/tests/test_compare.py +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/tests/test_decode.py +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/tests/test_encode.py +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/tests/test_features.py +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/tests/test_orient.py +0 -0
- {bin2path-0.1.4 → bin2path-0.1.5}/tests/test_serialize.py +0 -0
|
@@ -26,8 +26,10 @@ def animate(
|
|
|
26
26
|
ax.set_facecolor("black")
|
|
27
27
|
|
|
28
28
|
if title is None:
|
|
29
|
-
title = f"
|
|
30
|
-
|
|
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"
|
|
144
|
-
|
|
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 =
|
|
284
|
-
|
|
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")
|
|
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
|