This is arguably a "bug" that the dash descriptors aren't being scaled along with the line width. However, I'm loathe to "fix" it as it's been this way a long time, and all backends are at least consistent with one another in this behavior. Note, however, that inkscape, and I suspect other vector graphics tools, don't behave like matplotlib -- the dashes are scaled with the line width -- even though the underlying format, in this case SVG, doesn't behave that way.
As a workaround, you can explicitly set the dash sequence, e.g.: plot([1,2,3], lw=6, dashes=(6, 6)) See here: http://matplotlib.sourceforge.net/api/artist_api.html#matplotlib.lines.Line2D.set_dashes Cheers, Mike Robin wrote: > Again, apologies if this is an obvious question but I couldn't find the > answer. > > With a lw=1 dotted (:) line the dots are square and it looks very > nice. But when I put lw up say to 2 or 3, the dots become rectangular, > which looks a bit odd, particularly at points where the underlying > graph curves sharply compared to the spacing of the dots. > > Is there anyway to keep the dots square (ie as lw=2 for both > dimensions) instead of rectangular? > > Cheers > > Robin > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users