◆ __init__()
      
        
          | jLM.ImageAnalysis.SvgContext.__init__ | ( |  | self, | 
        
          |  |  |  | nx, | 
        
          |  |  |  | ny, | 
        
          |  |  |  | filename = None ) | 
      
 
Context manager to draw to an SVG surface.
Arguments:
    nx(int):
      Width in pixels
    ny(int):
      Height in pixels
Keyword Arguments:
    filename (str):
        Write SVG to file as well as displaying in notebook
 
 
 
◆ __enter__()
      
        
          | jLM.ImageAnalysis.SvgContext.__enter__ | ( |  | self | ) |  | 
      
 
 
◆ __exit__()
      
        
          | jLM.ImageAnalysis.SvgContext.__exit__ | ( |  | self, | 
        
          |  |  |  | type, | 
        
          |  |  |  | value, | 
        
          |  |  |  | traceback ) | 
      
 
 
◆ context
      
        
          | jLM.ImageAnalysis.SvgContext.context = cairo.Context(self.surface) | 
      
 
 
◆ filename
      
        
          | jLM.ImageAnalysis.SvgContext.filename = filename | 
      
 
 
◆ fileObj
      
        
          | jLM.ImageAnalysis.SvgContext.fileObj = io.BytesIO() | 
      
 
 
      
        
          | jLM.ImageAnalysis.SvgContext.h = ny | 
      
 
 
◆ surface
      
        
          | jLM.ImageAnalysis.SvgContext.surface = cairo.SVGSurface(self.fileObj,nx,ny) | 
      
 
 
      
        
          | jLM.ImageAnalysis.SvgContext.w = nx | 
      
 
 
The documentation for this class was generated from the following file: