2

I am using the contour function from Julia's Plots to plot level curves. I want to extract a list of x coordinates and a list of y coordinates corresponding to the level curves from the plot, e.g., something like this. Is there a way to do it in Julia?

Michael K. Borregaard
  • 7,864
  • 1
  • 28
  • 35
largecats
  • 195
  • 1
  • 14

1 Answers1

0

Not for contour, unfortunately. For most plot types you can extract the input data of, e.g. the first series in the first subplot, with p[1][1][:x]. But for contour in particular Plots does not generate the level curves, it simply passes the matrix to the backend that then does the computation and display.

Michael K. Borregaard
  • 7,864
  • 1
  • 28
  • 35