0

I want to plot a graph and on the top of it a contour. And then obtain the points where the contour lines intersect with graph line. I am trying something like this

plt.hold(True)
plt.contour(X, Y, Z)
plt.plot(tp,cp)

But I couldn't plot them. Please help me in getting the plots done.

ImportanceOfBeingErnest
  • 321,279
  • 53
  • 665
  • 712
  • 1
    Can you provide the code snippet and graphs image at least? – Rahul Telgote Apr 18 '17 at 05:56
  • Possible duplicate of [Finding intersection between straight line and contour](http://stackoverflow.com/questions/22232311/finding-intersection-between-straight-line-and-contour) – ImportanceOfBeingErnest Apr 18 '17 at 07:23
  • I could plot it now.plt.hold(True) plt.contour(A, B, Z,colors='blue',linestyles='dashed') plt.contour(A, B, D,colors='red',linestyles='dashed') plt.plot(fpr,tpr) – Divya Nair Apr 19 '17 at 08:25

0 Answers0