Skip to content
Discussion options

You must be logged in to vote

the EXTMIN and EXTMAX header variables don't correspond to the limits of the drawing. They are just hints (and are usually wrong).
if you want to highlight a particular entity then there are several ways you could do that:

  • inherit from MatplotlibBackend and create your own backend which takes a collection of entity handles that should be highlighted. Override the draw_line method to draw highlighted lines differently (use self.current_entity.dxf.handle to get the handle of the line being drawn in draw_line)
  • plot over the image using matplotlib. You already have the axes to draw on. Is there any reason you can't just use ax.plot() to draw over the cad before saving the image?

if you real…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mozman
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
Converted from issue

This discussion was converted from issue #219 on December 11, 2020 04:49.