mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sw-plotting-tool.git
synced 2025-07-31 11:01:54 +00:00
Added support for plotting the derivative. Amended README
This commit is contained in:
parent
3a19f862ad
commit
0273699c25
Binary file not shown.
@ -115,8 +115,7 @@ One last disclaimer: If there is a mistake in the data set, if you use a comma i
|
||||
There are numerous functionalities still missing. The following list provides an overview of all important functions, that should be added as soon as possible (more or less). The order of precedence represents the priority.
|
||||
|
||||
1. Merge plots (more than one data set in a single plot) – Maybe another tool for that?
|
||||
4. Add a custom x-axis label
|
||||
5. Add the option for a derivation plot
|
||||
6. Add try and catch statements around every user input
|
||||
2. Get the custom x-Axis label to work on the fourier plot
|
||||
3. Add try and catch statements around every user input
|
||||
|
||||
You are very welcome to help develop this tool further. If you are planning to do so, please send me a message (Max Heckmann) and I give you a short introduction in the already existing code. This probably saves you some time.
|
@ -1,4 +1,4 @@
|
||||
function diffPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, xAxis, channels, path, order)
|
||||
function diffPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, xAxis, channels, path)
|
||||
|
||||
%Iterate through all channels
|
||||
for channel = 1:width(data)
|
||||
@ -43,6 +43,10 @@ function diffPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, xAxis,
|
||||
figure(channel)
|
||||
plot(timeArray, yData, '-b');
|
||||
hold all
|
||||
|
||||
%shorten time array to match lost value from diff
|
||||
timeArray(end) = [];
|
||||
|
||||
plot(timeArray, diff(yData), '-r');
|
||||
ylabel(yAxis{channel}.Value);
|
||||
xlabel(xAxis{channel}.Value);
|
||||
@ -50,7 +54,7 @@ function diffPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, xAxis,
|
||||
title(channels{channel});
|
||||
|
||||
%Save plot
|
||||
saveFigs('median', figure(channel), channels(channel), path, fileSettings{1}.Value)
|
||||
saveFigs('derivative', figure(channel), channels(channel), path, fileSettings{1}.Value)
|
||||
|
||||
%reset
|
||||
hold off
|
||||
|
@ -47,7 +47,7 @@ function fourierPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, xAxi
|
||||
Nspec = 1024;
|
||||
end
|
||||
wspec = hamming(Nspec);
|
||||
Noverlap = Nspec/2;
|
||||
Noverlap = int16(Nspec/2);
|
||||
|
||||
hold on
|
||||
figure(channel)
|
||||
|
Loading…
x
Reference in New Issue
Block a user