MATLAB: How do you make a 2D plot where the x-axis represents more than one variable

plotting

I have an expression I need to plot. It depends on k_x, k_y, and k_z. I want to plot it with the expression (an eigenvalue) on the y-axis and the vector k=(k_x, k_y, k_z) on the x-axis, where the variables along the x-axis go: (pi, 0, pi) –> (0, 0, 0) –> (0, 0, pi) –> (pi, 0, pi). I realise k_y is always zero so the expression could be simplified, but it still leaves k_x and k_z changing independently of each other. I know this can be plotted because I'm essentially trying to replicate a figure in a paper I've seen. It's figure 2 in this: https://arxiv.org/pdf/1303.5784.pdf – I hope this makes sense, Thank you

Best Answer

See the documentation for the subplot (link) function.