Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/mpl_toolkits/mplot3d/art3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,16 @@ class Text3D(mtext.Text):

def __init__(self, x=0, y=0, z=0, text='', zdir='z', axlim_clip=False,
**kwargs):
if 'rotation' in kwargs:
_api.warn_external(
"The `rotation` parameter has not yet been implemented "
"and is currently ignored."
)
if 'rotation_mode' in kwargs:
_api.warn_external(
"The `rotation_mode` parameter has not yet been implemented "
"and is currently ignored."
)
mtext.Text.__init__(self, x, y, text, **kwargs)
self.set_3d_properties(z, zdir, axlim_clip)

Expand Down
10 changes: 10 additions & 0 deletions lib/mpl_toolkits/mplot3d/axes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1950,6 +1950,16 @@ def text(self, x, y, z, s, zdir=None, *, axlim_clip=False, **kwargs):
`.Text3D`
The created `.Text3D` instance.
"""
if 'rotation' in kwargs:
_api.warn_external(
"The `rotation` parameter has not yet been implemented "
"and is currently ignored."
)
if 'rotation_mode' in kwargs:
_api.warn_external(
"The `rotation_mode` parameter has not yet been implemented "
"and is currently ignored."
)
text = super().text(x, y, s, **kwargs)
art3d.text_2d_to_3d(text, z, zdir, axlim_clip)
return text
Expand Down
Loading