I'm not sure if this is the same thing as consonance/dissonance, but the graph of sin(x) + sin(2x), an octave, is regular and pretty and the graph of sin(x) + sin(sqrt(2)x), a tritone, is much less so.
https://www.wolframalpha.com/input/?i=sin%28x%29+%2B+sin%282...
https://www.wolframalpha.com/input/?i=sin%28x%29+%2B+sin%28s...