Skip to content
Discussion options

You must be logged in to vote

can you explain how you are constructing these additional zoomed in layouts? they seem to not be using viewports or you would not see the shapes in the image you posted (the drawing addon does not support viewports yet).
Are you setting the view boundary for the layout or something? the drawing addon completely ignores these because they are usually useless.
If you are able to calculate / find the view limits and you just want to set them on the axes after drawing then you can do:

fig = plt.figure()
ax = fig.add_axes([0, 0, 1, 1])
...
Frontend(ctx, out).draw_layout(layout2, finalize=True)
ax.set_xlim(xmin, xmax)
ax.set_ylim(ymin, ymax)

you have to be careful to maintain the aspect ratio t…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@mbway
Comment options

@mbway
Comment options

@melihpeker-pointr
Comment options

@mbway
Comment options

@melihpeker-pointr
Comment options

Answer selected by melihpeker-pointr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants