2
$\begingroup$

I have a List containing x,y,z data, which I can plot nicely in a ListContourPlot:

ListContourPlot[plotData, InterpolationOrder -> 0, ColorFunction -> "Rainbow", Contours -> 1024]

which results in:

enter image description here

Now I would like to add "projections" of the data in the x and y direction by summing over the z-values in the rows and columns of the plot.

How do I do that? Is there a way of doing this via the List plotData?

$\endgroup$
  • 2
    $\begingroup$ Is this close to what you are trying to do? $\endgroup$ – Jason B. May 13 at 19:06
  • 1
    $\begingroup$ Yes, this looks quite much what I'd like to see. I still have to dig into the code. $\endgroup$ – WolfiG May 13 at 20:39
  • 2
    $\begingroup$ I formatted the code a bit to make it more readable. There are probably easier ways to do things, but that is what I came up with at the time. $\endgroup$ – Jason B. May 13 at 21:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.