zoom a region with geom.plot_geometry #420
              
                
                  
                  
                    Answered
                  
                  by
                    jbocreative
                  
              
          
                  
                    
                      jbocreative
                    
                  
                
                  asked this question in
                Q&A
              
            -
| Hi all I am trying to debug a geometry For this I would like to zoom on the left side of the geometry plot How do I pass some xlim(0,100) argument for example ? Regards Julien | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            jbocreative
          
      
      
        Apr 25, 2024 
      
    
    Replies: 1 comment
-
| Answering myself :D 
 
 
 
 | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        robbievanleeuwen
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    

Answering myself :D
# Create a figure with desired sizefig, ax = plt.subplots(figsize=(20, 12)) # Adjust figsize as needed# Plot the mesh on the existing figuresec.plot_mesh(ax=ax, alpha=0.5)# Set xlim and ylimax.set_xlim([100, 200])ax.set_ylim([-100, 0])# Show the plotplt.show()