Skip to content

zoom a region with geom.plot_geometry #420

Answered by jbocreative
jbocreative asked this question in Q&A
Discussion options

You must be logged in to vote

Answering myself :D

# Create a figure with desired size
fig, ax = plt.subplots(figsize=(20, 12)) # Adjust figsize as needed

# Plot the mesh on the existing figure
sec.plot_mesh(ax=ax, alpha=0.5)

# Set xlim and ylim
ax.set_xlim([100, 200])
ax.set_ylim([-100, 0])

# Show the plot
plt.show()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by robbievanleeuwen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant