<div dir="ltr">I'm implementing a custom path effect by inheriting from AbstractPathEffect and implementing draw_path as instructed <a href="https://matplotlib.org/api/patheffects_api.html#matplotlib.patheffects.AbstractPathEffect.draw_path">here</a>.  That link references <a href="https://matplotlib.org/api/backend_bases_api.html#matplotlib.backend_bases.RendererBase.draw_path">RenderBase.draw_path</a> to define the required interface.  Unfortunately, I can't find anywhere in the associated documentation that tells me what the transform argument really entails.<div><br></div><div>I've also read the <a href="https://matplotlib.org/tutorials/advanced/transforms_tutorial.html">transforms tutorial</a>, and while that explains the pipeline and all the intermediate transformations, it doesn't really settle what I have available to me in draw_path.  It is clear that I can use it to transform coordinates from data to something -- but I don't know what to.</div><div><br></div><div>For the big picture -- I am implementing a path effect to allow drawing hatched lines similar to <a href="https://www.mathworks.com/matlabcentral/fileexchange/29121-hatched-lines-and-contours">this</a>, which I did years ago in Matlab.  Years before that, I've also done this in Java Graphics2D by implementing a custom stroke.  (The Java approach is more applicable to the path effect approach, but I can't point to that code online anywhere.)</div><div><br></div><div>Anyway, I have things mostly working -- and I am using the transform to go from data coordinates to something that looks orthogonal and reasonable on-screen.  So, for minimum functionality, it works.  However, I want to give the user the ability to control the length and spacing of the hatches -- which is in a coordinate system after the transformation is applied.  So, in order to document this thing, I need to know what it is.  Or, if there is a way to get intermediate stages of the transformation pipeline, that would work too.</div><div><br></div><div>As for the user interface -- it seems to make the most sense to specify the hatch length and spacing in terms of something similar to a line width (typically points) or a marker size.  I'm new to Python and matplotlib -- what is the Pythonic unit a user would expect to specify this in (and how do I achieve that with what is available in draw_path)?</div><div><br></div><div>Thanks,</div><div><br></div><div>Rob</div></div>