Eric Emsellem <[EMAIL PROTECTED]> writes: > But when saving it in a postscript the dashed line looks solid on most > of the plot. > This happens if there are too many points in the line:
The draw_lines method in the PS backend divides the line into subsequences of at most 50 points, and calls the "stroke" operator for each subsequence, which in effect resets the dash offset. Thus if 50 consecutive points fit within a dash, the line appears solid. I suppose the division into subsequences solves some memory or speed problem with PS interpreters, so it should be retained. Then the solution would be to compute the length X of each subsequence and do something like "currentdash pop X setdash" after the "stroke". -- Jouni ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users