cloudglancer 0.1.2__tar.gz → 0.1.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.
- {cloudglancer-0.1.2/cloudglancer.egg-info → cloudglancer-0.1.4}/PKG-INFO +1 -1
- {cloudglancer-0.1.2 → cloudglancer-0.1.4}/cloudglancer/scatter.py +8 -2
- {cloudglancer-0.1.2 → cloudglancer-0.1.4/cloudglancer.egg-info}/PKG-INFO +1 -1
- {cloudglancer-0.1.2 → cloudglancer-0.1.4}/pyproject.toml +1 -1
- {cloudglancer-0.1.2 → cloudglancer-0.1.4}/LICENSE +0 -0
- {cloudglancer-0.1.2 → cloudglancer-0.1.4}/MANIFEST.in +0 -0
- {cloudglancer-0.1.2 → cloudglancer-0.1.4}/README.md +0 -0
- {cloudglancer-0.1.2 → cloudglancer-0.1.4}/cloudglancer/__init__.py +0 -0
- {cloudglancer-0.1.2 → cloudglancer-0.1.4}/cloudglancer.egg-info/SOURCES.txt +0 -0
- {cloudglancer-0.1.2 → cloudglancer-0.1.4}/cloudglancer.egg-info/dependency_links.txt +0 -0
- {cloudglancer-0.1.2 → cloudglancer-0.1.4}/cloudglancer.egg-info/requires.txt +0 -0
- {cloudglancer-0.1.2 → cloudglancer-0.1.4}/cloudglancer.egg-info/top_level.txt +0 -0
- {cloudglancer-0.1.2 → cloudglancer-0.1.4}/setup.cfg +0 -0
- {cloudglancer-0.1.2 → cloudglancer-0.1.4}/tests/test_scatter.py +0 -0
|
@@ -113,7 +113,7 @@ def plot(
|
|
|
113
113
|
return fig
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
def combine_plots(figs: List[Figure], rows: int = 1, cols: int = 2) -> Figure:
|
|
116
|
+
def combine_plots(figs: List[Figure], rows: int = 1, cols: int = 2, aspectmode: Optional[str] = 'data') -> Figure:
|
|
117
117
|
"""
|
|
118
118
|
Combine multiple 3D plots into a single figure with subplots.
|
|
119
119
|
|
|
@@ -121,6 +121,7 @@ def combine_plots(figs: List[Figure], rows: int = 1, cols: int = 2) -> Figure:
|
|
|
121
121
|
figs (list): List of Plotly figures to combine.
|
|
122
122
|
rows (int, optional): Number of rows in the subplot grid. Default is 1.
|
|
123
123
|
cols (int, optional): Number of columns in the subplot grid. Default is 2.
|
|
124
|
+
aspectmode (str, optional): Aspect ratio mode for the 3D scene. Default is 'data' (Check plotly docs for available modes).
|
|
124
125
|
|
|
125
126
|
Returns:
|
|
126
127
|
plotly.graph_objects.Figure: Combined figure with all plots arranged in a grid.
|
|
@@ -157,7 +158,12 @@ def combine_plots(figs: List[Figure], rows: int = 1, cols: int = 2) -> Figure:
|
|
|
157
158
|
for trace in fig.data:
|
|
158
159
|
combined_fig.add_trace(trace, row=(i // cols) + 1, col=(i % cols) + 1)
|
|
159
160
|
|
|
160
|
-
|
|
161
|
+
scene_updates = {}
|
|
162
|
+
for i in range(len(figs)):
|
|
163
|
+
key = "scene" if i == 0 else f"scene{i + 1}"
|
|
164
|
+
scene_updates[key] = dict(aspectmode=aspectmode)
|
|
165
|
+
|
|
166
|
+
combined_fig.update_layout(**scene_updates,
|
|
161
167
|
margin=dict(l=0, r=0, t=0, b=0)
|
|
162
168
|
)
|
|
163
169
|
|
|
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
|