Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • As I understand it, the question is more about how to import data to a numpy array than plotting a contour graph?, see for example stackoverflow.com/q/4315506/8069403 Commented Oct 23, 2019 at 13:41
  • @xdze2 Thank you for your answer. Actually I'm interested in how to make the contour plot from that array. Everything in the code depends on the function h(x), but in this case, there's not a function, only values of that function for particular values of x. Commented Oct 24, 2019 at 10:53
  • I think the function to use is tricontour, which works on unstructured data (contrary to contour which need data on a grid). I would be helpfull if you rewrite the question toward this points, and simplify the example code including example data which could be copy/pasted (see minimal reproducible example) Commented Oct 24, 2019 at 11:18