Skip to content

Commit 37cead2

Browse files
committed
rename get to _as_object3d
1 parent ae684d7 commit 37cead2

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/matplotgl/axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def autoscale(self):
345345

346346
def add_artist(self, artist):
347347
self._artists.append(artist)
348-
self.scene.add(artist.get())
348+
self.scene.add(artist._as_object3d())
349349

350350
def get_figure(self):
351351
return self._fig

src/matplotgl/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get_bbox(self) -> dict[str, float]:
6363
def _update_colors(self) -> None:
6464
self._texture.data = self._make_colors()
6565

66-
def get(self) -> p3.Object3D:
66+
def _as_object3d(self) -> p3.Object3D:
6767
return self._image
6868

6969
def _set_xscale(self, scale: str) -> None:

src/matplotgl/line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def get_bbox(self):
6161
bottom, top = fix_empty_range(find_limits(self._y, scale=self._yscale, pad=pad))
6262
return {"left": left, "right": right, "bottom": bottom, "top": top}
6363

64-
def get(self):
64+
def _as_object3d(self) -> p3.Object3D:
6565
out = []
6666
if self._line is not None:
6767
out.append(self._line)

src/matplotgl/mesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def get_bbox(self) -> dict[str, float]:
133133
bottom, top = fix_empty_range(find_limits(self._y, scale=self._yscale, pad=pad))
134134
return {"left": left, "right": right, "bottom": bottom, "top": top}
135135

136-
def get(self) -> p3.Object3D:
136+
def _as_object3d(self) -> p3.Object3D:
137137
return self._mesh
138138

139139
def get_xdata(self) -> np.ndarray:

src/matplotgl/points.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def get_bbox(self):
148148
bottom, top = fix_empty_range(find_limits(self._y, scale=self._yscale, pad=pad))
149149
return {"left": left, "right": right, "bottom": bottom, "top": top}
150150

151-
def get(self):
151+
def _as_object3d(self) -> p3.Object3D:
152152
return self._points
153153

154154
def get_xdata(self) -> np.ndarray:

0 commit comments

Comments
 (0)