# Distortion spectrum

**URL:** <https://forum.quantasylum.com/t/distortion-spectrum/168>\
**Category:** QA401\
**Created:** [September 30, 2020, 5:53pm UTC](https://forum.quantasylum.com/t/distortion-spectrum/168 "2020-09-30T17:53:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaholm](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@Aaholm](https://forum.quantasylum.com/u/Aaholm)\
**Post date:** [September 30, 2020, 5:53pm UTC](https://forum.quantasylum.com/t/distortion-spectrum/168/1 "2020-09-30T17:53:52Z")

</div>

Is it possible/easy to make a graph/plot like the one attached?

It’s not important for it to be a bar graph. A spectrum is fine, but scaling the fundamental to 0dB and automatically identifying the harmonics and their relative levels is what I’m hoping for.

 ![FB_IMG_1601487829967](https://canada1.discourse-cdn.com/flex032/uploads/quantasylum/original/1X/2a2d4abe0787009e3ec7d7063dbf140fb38fd731.jpeg)

---

<div class="post-metadata">

**Author:** ![matt](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@matt](https://forum.quantasylum.com/u/matt)\
**Post date:** [October 2, 2020, 5:22am UTC](https://forum.quantasylum.com/t/distortion-spectrum/168/2 "2020-10-02T05:22:58Z")

</div>

Hi @Aaholm, the easiest way to see the relative levels of harmonics is to put a marker on the fundamental and the harmonics you are interested in seeing.

This will give you a table that shows the frequency, absolute and relative levels to the fundamental. The fundamental is indicated by the green F on the bottom of the display. You can select the fundamental detection strategy by control+clicking on the THD or THDN button. There you will see the option for the fundamental as being either the SigGen1 settings, the highest peak, or a user frequency.

When reading values from the table, note that the table is sorted. So, you’ll see M2 (3 kHz) is shown at -99.5 dBC while M1 (2 kHz) is at -100.75.

To add a marker, just click on a peak. To delete all the markers, right click and pick “Delete all markers” or hit ‘D’.

If you had to have a bargraph, you could export the raw data and use excel macros to pick a max in a range.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/quantasylum/original/1X/7c0a81ce2ec652f4a98cddcde33a02a1dd27e06b.png)

---

<div class="post-metadata">

**Author:** ![Aaholm](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@Aaholm](https://forum.quantasylum.com/u/Aaholm)\
**Post date:** [October 2, 2020, 10:36am UTC](https://forum.quantasylum.com/t/distortion-spectrum/168/3 "2020-10-02T10:36:13Z")

</div>

Thanks.

What I was hoping for was an easy way to shift the y axis so that 0dB would be the level of the fundamental (not locked to 0dBV) and then all the harmonics were assigned a marker automatically. I know all the information is in the plot and that the markers work fine, but it’s a little tedious. Can it be automated in the software, or is the only option to export the data and use other tools for that.

---

<div class="post-metadata">

**Author:** ![matt](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@matt](https://forum.quantasylum.com/u/matt)\
**Post date:** [October 2, 2020, 3:19pm UTC](https://forum.quantasylum.com/t/distortion-spectrum/168/4 "2020-10-02T15:19:04Z")

</div>

You can do that too: Just control+click on dbr button and then click “Set Display Peak to 0 dB” and you get the following. Note the peak is now 0 dBr.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/quantasylum/original/1X/a09daebf578aa185b43f95ee38af8d55c4f3a4f9.png)

---

<div class="post-metadata">

**Author:** ![Aaholm](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@Aaholm](https://forum.quantasylum.com/u/Aaholm)\
**Post date:** [October 3, 2020, 7:39am UTC](https://forum.quantasylum.com/t/distortion-spectrum/168/5 "2020-10-03T07:39:22Z")

</div>

Thanks! I wasn’t aware of that option. Very nice. That’s close enough to what I was looking/hoping for.
