From: Richard R. <rr...@fi...> - 2010-05-28 19:10:37
|
On Fri, May 28, 2010 at 12:02 PM, Eric Firing wrote: > On 05/28/2010 06:31 AM, Richard Ree wrote: >> To visualize trees, I'm creating Path objects that draw horizontal and >> vertical lines between connected nodes. I make sure to end these >> paths with a MOVETO code and the final vertex, and a STOP code and the >> final vertex. But I consistently see an anomalous line segment >> getting rendered, angling between two disconnected nodes. The problem >> is intermittent - if I pan or zoom, the anomalous segment might go >> away or change position. It's also consistent - if I create two plots >> of the same tree structure, the anomalous segment appears in the same >> way. I've tried different backends, all the same. The attached >> screenshots illustrate the problem. In each case, a detail of the >> tree is shown in the right pane. path-artefact.png shows the >> anomalous segment angling across the view. Any ideas on why this >> occurs? I'm using the latest matplotlib release. > > Does it still happen if you turn off path simplification? E.g. > > rcParams['path.simplify'] = False Yes, this seems to fix it. Thanks! -Rick > > Eric > >> >> Thanks >> -Rick >> >> >> >> ------------------------------------------------------------------------------ >> >> >> >> >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |