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.
		
		
		
		
		
			
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Python
		
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Python
		
	
from .backend_bases import RendererBase
 | 
						|
 | 
						|
from matplotlib.typing import ColorType
 | 
						|
 | 
						|
import numpy as np
 | 
						|
 | 
						|
class TexManager:
 | 
						|
    texcache: str
 | 
						|
    @classmethod
 | 
						|
    def get_basefile(
 | 
						|
        cls, tex: str, fontsize: float, dpi: float | None = ...
 | 
						|
    ) -> str: ...
 | 
						|
    @classmethod
 | 
						|
    def get_font_preamble(cls) -> str: ...
 | 
						|
    @classmethod
 | 
						|
    def get_custom_preamble(cls) -> str: ...
 | 
						|
    @classmethod
 | 
						|
    def make_tex(cls, tex: str, fontsize: float) -> str: ...
 | 
						|
    @classmethod
 | 
						|
    def make_dvi(cls, tex: str, fontsize: float) -> str: ...
 | 
						|
    @classmethod
 | 
						|
    def make_png(cls, tex: str, fontsize: float, dpi: float) -> str: ...
 | 
						|
    @classmethod
 | 
						|
    def get_grey(
 | 
						|
        cls, tex: str, fontsize: float | None = ..., dpi: float | None = ...
 | 
						|
    ) -> np.ndarray: ...
 | 
						|
    @classmethod
 | 
						|
    def get_rgba(
 | 
						|
        cls,
 | 
						|
        tex: str,
 | 
						|
        fontsize: float | None = ...,
 | 
						|
        dpi: float | None = ...,
 | 
						|
        rgb: ColorType = ...,
 | 
						|
    ) -> np.ndarray: ...
 | 
						|
    @classmethod
 | 
						|
    def get_text_width_height_descent(
 | 
						|
        cls, tex: str, fontsize, renderer: RendererBase | None = ...
 | 
						|
    ) -> tuple[int, int, int]: ...
 |