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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudglancer
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: Simple interactive visualization of 3D point clouds
5
5
  Author-email: Your Name <your.email@example.com>
6
6
  License: MIT
@@ -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
- combined_fig.update_layout(
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudglancer
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: Simple interactive visualization of 3D point clouds
5
5
  Author-email: Your Name <your.email@example.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cloudglancer"
7
- version = "0.1.2"
7
+ version = "0.1.4"
8
8
  description = "Simple interactive visualization of 3D point clouds"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
File without changes
File without changes
File without changes
File without changes