-
-
Notifications
You must be signed in to change notification settings - Fork 8k
DOC: document fmt_xdata, fmt_ydata, and fmt_zdata #25187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
432f9a7
83dedd9
debd606
faa21be
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -11,6 +11,7 @@ | |||||
""" | ||||||
|
||||||
from collections import defaultdict | ||||||
from collections.abc import Callable | ||||||
import itertools | ||||||
import math | ||||||
import textwrap | ||||||
|
@@ -57,6 +58,15 @@ class Axes3D(Axes): | |||||
Axes._shared_axes["z"] = cbook.Grouper() | ||||||
Axes._shared_axes["view"] = cbook.Grouper() | ||||||
|
||||||
fmt_zdata: Callable[[float], str] | None | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Setting this to something seems to fix it, though again, not sure why it doesn't seem necessary on the others.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just had an idea... Neither of these exist as attributes on the class:
and yet the former works. But the difference between 2D and 3D Axes is the former has type stubs and the latter doesn't. Unfortunately, removing |
||||||
""" | ||||||
Callable to format the z-data in an interactive window. | ||||||
|
||||||
The expected signature is :: | ||||||
|
||||||
def fmt(val: float, /) -> str: ... | ||||||
""" | ||||||
|
||||||
def __init__( | ||||||
self, fig, rect=None, *args, | ||||||
elev=30, azim=-60, roll=0, shareview=None, sharez=None, | ||||||
|
Uh oh!
There was an error while loading. Please reload this page.