Skip to main content
added 1 character in body
Source Link
Henrik Schumacher
  • 109.5k
  • 7
  • 186
  • 323

I have two functions (of energy) that are imaginary below different energies. These expressions are quite long and unfortunately, when plotting Re@func, I am left with some trash at low energies. What I want is to add the real parts of these equations and plot them (only add parts with energy greater than the imaginary limit to get rid of the trash). One way I taughtthought of doing it was to plot both functions for only energies greater than imaginary limit 1, and imaginary limit 2. Then add those plots together (not like Show[func1, func2], but actually adding the values of both the functions at a given value together, and then plot the resulting line). Is there a function that does that?

I can illustrate by an example: Lets say we have y1 = x + 2, and we only want this function for x greater than 4. Then we have y2 = 2x + 1, and we want that for x greater than 1. Can this be plotted in a neat way or will I have to make two plots (y2 from x = 1 to 4, and y1+y2 from x = 4) and then combine them using Show?

And another question: If I use Show as suggested above, how can I remove the frame that will will appear at x = 4, but at the same time keep the frame around the entire graph?

I have two functions (of energy) that are imaginary below different energies. These expressions are quite long and unfortunately, when plotting Re@func, I am left with some trash at low energies. What I want is to add the real parts of these equations and plot them (only add parts with energy greater than the imaginary limit to get rid of the trash). One way I taught of doing it was to plot both functions for only energies greater than imaginary limit 1, and imaginary limit 2. Then add those plots together (not like Show[func1, func2], but actually adding the values of both the functions at a given value together, and then plot the resulting line). Is there a function that does that?

I can illustrate by an example: Lets say we have y1 = x + 2, and we only want this function for x greater than 4. Then we have y2 = 2x + 1, and we want that for x greater than 1. Can this be plotted in a neat way or will I have to make two plots (y2 from x = 1 to 4, and y1+y2 from x = 4) and then combine them using Show?

And another question: If I use Show as suggested above, how can I remove the frame that will will appear at x = 4, but at the same time keep the frame around the entire graph?

I have two functions (of energy) that are imaginary below different energies. These expressions are quite long and unfortunately, when plotting Re@func, I am left with some trash at low energies. What I want is to add the real parts of these equations and plot them (only add parts with energy greater than the imaginary limit to get rid of the trash). One way I thought of doing it was to plot both functions for only energies greater than imaginary limit 1, and imaginary limit 2. Then add those plots together (not like Show[func1, func2], but actually adding the values of both the functions at a given value together, and then plot the resulting line). Is there a function that does that?

I can illustrate by an example: Lets say we have y1 = x + 2, and we only want this function for x greater than 4. Then we have y2 = 2x + 1, and we want that for x greater than 1. Can this be plotted in a neat way or will I have to make two plots (y2 from x = 1 to 4, and y1+y2 from x = 4) and then combine them using Show?

And another question: If I use Show as suggested above, how can I remove the frame that will will appear at x = 4, but at the same time keep the frame around the entire graph?

Source Link

Is it possible to add two plots together?

I have two functions (of energy) that are imaginary below different energies. These expressions are quite long and unfortunately, when plotting Re@func, I am left with some trash at low energies. What I want is to add the real parts of these equations and plot them (only add parts with energy greater than the imaginary limit to get rid of the trash). One way I taught of doing it was to plot both functions for only energies greater than imaginary limit 1, and imaginary limit 2. Then add those plots together (not like Show[func1, func2], but actually adding the values of both the functions at a given value together, and then plot the resulting line). Is there a function that does that?

I can illustrate by an example: Lets say we have y1 = x + 2, and we only want this function for x greater than 4. Then we have y2 = 2x + 1, and we want that for x greater than 1. Can this be plotted in a neat way or will I have to make two plots (y2 from x = 1 to 4, and y1+y2 from x = 4) and then combine them using Show?

And another question: If I use Show as suggested above, how can I remove the frame that will will appear at x = 4, but at the same time keep the frame around the entire graph?