Skip to content

Commit 25ce592

Browse files
authored
Merge pull request #90 from behroozbc/patch-1
Update Spectral Magnitude and Power Density part
2 parents 67a07e9 + 5451807 commit 25ce592

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ double samplePeriod = sampleRate / 1000.0;
3838
ScottPlot.Plot plt = new();
3939
plt.Add.Signal(signal, samplePeriod);
4040
plt.YLabel("Amplitude");
41-
plt.SavePng("time-series.png",500,500);
41+
plt.SavePng("time-series.png",500,200);
4242
```
4343

4444
<div align="center">
@@ -65,10 +65,10 @@ double[] freq = FftSharp.FFT.FrequencyScale(psd.Length, sampleRate);
6565

6666
// plot the sample audio
6767
ScottPlot.Plot plt = new ScottPlot.Plot();
68-
plt.AddScatterLines(freq, psd);
68+
plt.Add.ScatterLine(freq, psd);
6969
plt.YLabel("Power (dB)");
7070
plt.XLabel("Frequency (Hz)");
71-
plt.SaveFig("periodogram.png");
71+
plt.SavePng("periodogram.png",500,200);
7272
```
7373

7474
<div align="center">

0 commit comments

Comments
 (0)