You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			32 lines
		
	
	
		
			831 B
		
	
	
	
		
			Python
		
	
			
		
		
	
	
			32 lines
		
	
	
		
			831 B
		
	
	
	
		
			Python
		
	
from typing import Any, Literal
 | 
						|
 | 
						|
from matplotlib.axes import Axes
 | 
						|
from matplotlib.backend_bases import Event, MouseButton
 | 
						|
from matplotlib.widgets import AxesWidget, Widget
 | 
						|
 | 
						|
def get_ax() -> Axes: ...
 | 
						|
def noop(*args: Any, **kwargs: Any) -> None: ...
 | 
						|
def mock_event(
 | 
						|
    ax: Axes,
 | 
						|
    button: MouseButton | int | Literal["up", "down"] | None = ...,
 | 
						|
    xdata: float = ...,
 | 
						|
    ydata: float = ...,
 | 
						|
    key: str | None = ...,
 | 
						|
    step: int = ...,
 | 
						|
) -> Event: ...
 | 
						|
def do_event(
 | 
						|
    tool: AxesWidget,
 | 
						|
    etype: str,
 | 
						|
    button: MouseButton | int | Literal["up", "down"] | None = ...,
 | 
						|
    xdata: float = ...,
 | 
						|
    ydata: float = ...,
 | 
						|
    key: str | None = ...,
 | 
						|
    step: int = ...,
 | 
						|
) -> None: ...
 | 
						|
def click_and_drag(
 | 
						|
    tool: Widget,
 | 
						|
    start: tuple[float, float],
 | 
						|
    end: tuple[float, float],
 | 
						|
    key: str | None = ...,
 | 
						|
) -> None: ...
 |