mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Update coordinate_systems.py
This commit is contained in:
parent
cfded00f13
commit
3108b49f55
1 changed files with 4 additions and 2 deletions
|
@ -128,14 +128,16 @@ class CoordinateSystem(ABC):
|
|||
axis: np.ndarray,
|
||||
edge: np.ndarray,
|
||||
direction: np.ndarray,
|
||||
buff: float = MED_SMALL_BUFF
|
||||
buff: float = MED_SMALL_BUFF,
|
||||
ensure_on_screen: bool = False
|
||||
) -> Tex:
|
||||
label = Tex(label_tex)
|
||||
label.next_to(
|
||||
axis.get_edge_center(edge), direction,
|
||||
buff=buff
|
||||
)
|
||||
label.shift_onto_screen(buff=MED_SMALL_BUFF)
|
||||
if ensure_on_screen:
|
||||
label.shift_onto_screen(buff=MED_SMALL_BUFF)
|
||||
return label
|
||||
|
||||
def get_axis_labels(
|
||||
|
|
Loading…
Add table
Reference in a new issue