![]() ![]() What I want to do is combine the following two plots: fig, ax = plt.subplots()Īx.scatter(x1, y1, color='blue', label='Series 1')Īx.scatter(x2, y2, color='green', label='Series 2')Ī second plot that uses the x1,x2,y1,y2 data but has been filtered to create a line between two points that have same y1=y2 and their x1 > x2. The surface is cut (due to nan values) along the convex hull of the input points, so even though our gridded arrays define a rectangular grid we only get a cut of the surface where interpolation makes sense.I am having difficulties plotting data when using a for loop. ![]() (The fact that the red points are usually hidden by the surface is only due to how pyplot's renderer mishandles the relative position of complex 3d objects) Fortunately the input points are nice and smooth so everything goes well with interpolation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |