This is a bug and I just pushed a fix to the git repo. Meanwhile, a workaround is
l1, = ax2.plot(range(150),[10.]*150,color='g') l1._transformed_path = None l1._subslice = False Regards, -JJ On Tue, Mar 8, 2011 at 6:48 AM, Hatch, Sara J (343D) <sara.j.ha...@jpl.nasa.gov> wrote: > Matlplotlib folks, > > > > I copied the demo_curvelinear_grid.py example and noticed when using the > curvelinear_test2 > > and plotting a line that had more than 100 points that the resulting line > doesn’t plot as expected. > > > > For example: > > > > Replacing > > ax2.plot(intp(np.array([0, 30]), 50), > > intp(np.array([10., 10.]), 50)) > > > > with > > ax2.plot(range(150),[10.]*150,color='g') > > ax2.plot(range(100),[5.]*100,color='r') > > > > Shows my problem. The red line with 100 points plots just fine and as > expected. The green line with 150 points doesn’t make any sense to me (I’ve > attached the output plot). The line plots at the right radial value, but > goes from 0 degrees to what looks like 14 degrees instead of 150 degrees. > > > > Is there anything in the example code or in some of the code that limits the > number of points to 100? > > > > Thanks, > > Sara > > > > Software Versions: > > Python : 2.6.5 > > matplotlib.__version__ = '1.0.0' > > > > ------------------------------------------------------------------- > Sara Jean Hatch > Inner Planet Mission Analysis Group > Guidance, Navigation, & Control Section > NASA - Jet Propulsion Laboratory > 4800 Oak Grove Drive > M/S: 301-150 > Pasadena, CA 91109 > Phone: (818) 354-8723 > ------------------------------------------------------------------- > > > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users