# Plot frequency with real & imaginary part?

**URL:** <https://community.wolfram.com/t/plot-frequency-with-real-imaginary-part/18704>\
**Category:** Questions\
**Tags:** signal-processing, graphics-and-visualization\
**Created:** [August 19, 2021, 6:07am UTC](https://community.wolfram.com/t/plot-frequency-with-real-imaginary-part/18704 "2021-08-19T06:07:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![s2030200](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@s2030200](https://community.wolfram.com/u/s2030200)\
**Post date:** [August 19, 2021, 6:07am UTC](https://community.wolfram.com/t/plot-frequency-with-real-imaginary-part/18704/1 "2021-08-19T06:07:06Z")

</div>

Hi,  
I try to plot wave speed which is a function of frequency [omega] and its have 4 solutions with imaginary parts. I have to plot my program in the x-axis is frequency parameter [[CapitalOmega]] and y-axis in real and imaginary wave speed. We assume that the imaginary line will be shown, its decrease and real will increase, but I could not figure out the result. Please help me how can I Plot wave speed as a function of omega. I attached my program here where c1 is the wave speed.

[Help post wave speed.nb](https://community.wolfram.com/uploads/short-url/3VlxyUkH7IqcCW9NhaddwjsR0EK.nb) (46.5 KB)

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [August 19, 2021, 6:15pm UTC](https://community.wolfram.com/t/plot-frequency-with-real-imaginary-part/18704/2 "2021-08-19T18:15:12Z")

</div>

Hi Md,

The problem is that ω is assigned a specific value so the solution does not depend on ω, so straight lines are plotted.

Comment out ω = 2 π fp; then evaluate `ClearAll[Evaluate[Context[] <> "*"]]`. Then evaluate all the cells

 ![9363plot.png](https://global.discourse-cdn.com/wolfram/original/3X/0/0/0066c598a0d6c55d12d59324917e96160e6a8f63.png)

---

<div class="post-metadata">

**Author:** ![s2030200](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@s2030200](https://community.wolfram.com/u/s2030200)\
**Post date:** [August 20, 2021, 8:33am UTC](https://community.wolfram.com/t/plot-frequency-with-real-imaginary-part/18704/3 "2021-08-20T08:33:06Z")

</div>

Dear Rohit

Thank you very much for your reply. I am not familiar with Mathematica so can you add your edit program where you find this figure. I hope it`s helpful for me. Please add the editing program so that I can understand what change I need.

---

<div class="post-metadata">

**Author:** ![s2030200](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@s2030200](https://community.wolfram.com/u/s2030200)\
**Post date:** [August 20, 2021, 8:58am UTC](https://community.wolfram.com/t/plot-frequency-with-real-imaginary-part/18704/4 "2021-08-20T08:58:33Z")

</div>

Dear Rohit, I can plot now. Thank you very much for your help. One more thing please tell me how can I plot positive two-waves in one figure and other negative two-waves in another figure. That means how can I plot positive and negative wave speed in a separate graph. Please help me.

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [August 20, 2021, 4:34pm UTC](https://community.wolfram.com/t/plot-frequency-with-real-imaginary-part/18704/5 "2021-08-20T16:34:33Z")

</div>

See the attached notebook.

[Help post wave speed v2.nb](https://community.wolfram.com/uploads/short-url/48JXLirNlSojkwmZ7a7GqUib5a7.nb) (134 KB)

---

<div class="post-metadata">

**Author:** ![s2030200](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@s2030200](https://community.wolfram.com/u/s2030200)\
**Post date:** [August 21, 2021, 6:46am UTC](https://community.wolfram.com/t/plot-frequency-with-real-imaginary-part/18704/6 "2021-08-21T06:46:13Z")

</div>

Dear Rohit

Thank you very very much for your help. I am very happy to see my required result.  
Take care and be happy.
