From f23548c382620014485fb931321eb82cbe218e70 Mon Sep 17 00:00:00 2001 From: Grzegorz Sterniczuk Date: Sun, 25 Oct 2026 14:51:01 +0100 Subject: [PATCH 1/9] fix(build): drop unused b2r.m and carry its BSD notice for past releases --- THIRD-PARTY-LICENSES.md | 47 ++++++++++++-- src/util/b2r.m | 135 ---------------------------------------- 2 files changed, 43 insertions(+), 139 deletions(-) delete mode 100644 src/util/b2r.m diff --git a/THIRD-PARTY-LICENSES.md b/THIRD-PARTY-LICENSES.md index f7dfced..43379ff 100644 --- a/THIRD-PARTY-LICENSES.md +++ b/THIRD-PARTY-LICENSES.md @@ -81,11 +81,50 @@ signal 1.4.7, statistics 1.8.3) with their notices retained in place. The macOS package ships no Octave packages at all - `pidscope.command` installs control and signal from Octave Forge on first launch. -## MATLAB File Exchange helpers +## b2r colormap (releases up to v26.10.0) -`src/` contains a small number of helper functions originating from the -MathWorks File Exchange. Their original headers, author names and licence -terms are retained in the respective files. +| | | +| --- | --- | +| Upstream | https://www.mathworks.com/matlabcentral/fileexchange/36212-b2r-cmin-input-cmax-input- | +| Author | Cunjie Zhang | +| Licence | BSD-2-Clause | +| Copyright | Copyright (c) 2015, LoveUltraman | + +Every release from v26.02-beta1 to v26.10.0 shipped `b2r.m`, a blue-white-red +colormap from the MATLAB File Exchange inherited from PIDtoolbox, unmodified: +at the top level up to v26.02-beta4, as `src/util/b2r.m` from v26.02-rc1 on. +Releases up to v26.03.1 also carried a copy of the same function inside the +statistics plot (`PTplotStats.m`, later `src/plot/PSplotStats.m`). Those files +kept the author's name but not the licence the File Exchange distributes with +the submission, so it is reproduced here for those releases. Later releases do +not contain the code. + +``` +Copyright (c) 2015, LoveUltraman +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the distribution + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +``` ## Obtaining the source diff --git a/src/util/b2r.m b/src/util/b2r.m deleted file mode 100644 index c9d2958..0000000 --- a/src/util/b2r.m +++ /dev/null @@ -1,135 +0,0 @@ -function newmap = b2r(cmin_input,cmax_input) -%BLUEWHITERED Blue, white, and red color map. -% this matlab file is designed to draw anomaly figures. the color of -% the colorbar is from blue to white and then to red, corresponding to -% the anomaly values from negative to zero to positive, respectively. -% The color white always correspondes to value zero. -% -% You should input two values like caxis in matlab, that is the min and -% the max value of color values designed. e.g. colormap(b2r(-3,5)) -% -% the brightness of blue and red will change according to your setting, -% so that the brightness of the color corresponded to the color of his -% opposite number -% e.g. colormap(b2r(-3,6)) is from light blue to deep red -% e.g. colormap(b2r(-3,3)) is from deep blue to deep red -% -% I'd advise you to use colorbar first to make sure the caxis' cmax and cmin. -% Besides, there is also another similar colorbar named 'darkb2r', in which the -% color is darker. -% -% by Cunjie Zhang, 2011-3-14 -% find bugs ====> email : daisy19880411@126.com -% updated: Robert Beckman help to fix the bug when start point is zero, 2015-04-08 -% -% Examples: -% ------------------------------ -% figure -% peaks; -% colormap(b2r(-6,8)), colorbar, title('b2r') -% - - -%% check the input -if nargin ~= 2 ; - disp('input error'); - disp('input two variables, the range of caxis , for example : colormap(b2r(-3,3))'); -end - -if cmin_input >= cmax_input - disp('input error'); - disp('the color range must be from a smaller one to a larger one'); -end - -%% control the figure caxis -lims = get(gca, 'CLim'); % get figure caxis formation -caxis([cmin_input cmax_input]); - -%% color configuration : from blue to to white then to red - -red_top = [1 0 0]; -white_middle= [1 1 1]; -blue_bottom = [0 0 1]; - -%% color interpolation - -color_num = 251; -color_input = [blue_bottom; white_middle; red_top]; -oldsteps = linspace(-1, 1, size(color_input,1)); -newsteps = linspace(-1, 1, color_num); - -%% Category Discussion according to the cmin and cmax input - -% the color data will be remaped to color range from -max(abs(cmin_input),cmax_input) -% to max(abs(cmin_input),cmax_input) , and then squeeze the color data -% in order to make sure the blue and red color selected corresponded -% to their math values - -% for example : -% if b2r(-3,6) ,the color range is from light blue to deep red , so that -% the light blue valued at -3 correspondes to light red valued at 3 - - -%% Category Discussion according to the cmin and cmax input -% first : from negative to positive -% then : from positive to positive -% last : from negative to negative - -for j=1:3 - newmap_all(:,j) = min(max(transpose(interp1(oldsteps, color_input(:,j), newsteps)), 0), 1); -end - -if (cmin_input < 0) && (cmax_input > 0) ; - - - if abs(cmin_input) < cmax_input - - % |--------|---------|--------------------| - % -cmax cmin 0 cmax [cmin,cmax] - - start_point = max(round((cmin_input+cmax_input)/2/cmax_input*color_num),1); - newmap = squeeze(newmap_all(start_point:color_num,:)); - - elseif abs(cmin_input) >= cmax_input - - % |------------------|------|--------------| - % cmin 0 cmax -cmin [cmin,cmax] - - end_point = max(round((cmax_input-cmin_input)/2/abs(cmin_input)*color_num),1); - newmap = squeeze(newmap_all(1:end_point,:)); - end - - -elseif cmin_input >= 0 - - if lims(1) < 0 - disp('caution:') - disp('there are still values smaller than 0, but cmin is larger than 0.') - disp('some area will be in red color while it should be in blue color') - end - - % |-----------------|-------|-------------| - % -cmax 0 cmin cmax [cmin,cmax] - - start_point = max(round((cmin_input+cmax_input)/2/cmax_input*color_num),1); - newmap = squeeze(newmap_all(start_point:color_num,:)); - -elseif cmax_input <= 0 - - if lims(2) > 0 - disp('caution:') - disp('there are still values larger than 0, but cmax is smaller than 0.') - disp('some area will be in blue color while it should be in red color') - end - - % |------------|------|--------------------| - % cmin cmax 0 -cmin [cmin,cmax] - - end_point = max(round((cmax_input-cmin_input)/2/abs(cmin_input)*color_num),1); - newmap = squeeze(newmap_all(1:end_point,:)); -end - - - - - From 652a6a0204e08e747026b2e559a4fb3f0466d00d Mon Sep 17 00:00:00 2001 From: Grzegorz Sterniczuk Date: Sun, 25 Oct 2026 14:51:48 +0100 Subject: [PATCH 2/9] fix(compat): restore the Beer-Ware notice and source citation in dkl2rgb --- src/compat/dkl2rgb.m | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/compat/dkl2rgb.m b/src/compat/dkl2rgb.m index 38f8ddc..f47ab55 100644 --- a/src/compat/dkl2rgb.m +++ b/src/compat/dkl2rgb.m @@ -2,10 +2,17 @@ % dkl2rgb - convert DKL cone opponent colors to RGB % rgb = dkl2rgb(dkl) % input (dkl) is [luminance; red/green; blue/yellow] +% 'magic numbers', based on 'average' crt monitor and derived using +% Smith & Pokorny cone fundamentals % V. C. Smith & J. Pokorny (1975), Vision Res. 15, 161-172. % -% Copyright (C) 2026 Grzegorz Sterniczuk -% License: GPL v3 (see LICENSE) % Extracted from PScolormap.m for Octave compatibility +% +% ---------------------------------------------------------------------------------- +% "THE BEER-WARE LICENSE" (Revision 42): +% wrote this file. As long as you retain this notice you +% can do whatever you want with this stuff. If we meet some day, and you think +% this stuff is worth it, you can buy me a beer in return. -Brian White +% ---------------------------------------------------------------------------------- M_dkl2rgb = [ 1.0000 1.0000 -0.3495 From fd40883cacbc311012994da5fe28e579b359c1b1 Mon Sep 17 00:00:00 2001 From: Grzegorz Sterniczuk Date: Sun, 25 Oct 2026 14:59:43 +0100 Subject: [PATCH 3/9] refactor(compat): rewrite kstest2 p-value from the Kolmogorov distribution --- src/compat/kstest2.m | 54 +++++++++++++++++++++++++++++++++++--------- tests/test_compat.m | 23 +++++++++++++++++++ 2 files changed, 66 insertions(+), 11 deletions(-) diff --git a/src/compat/kstest2.m b/src/compat/kstest2.m index 729302f..bf1ba28 100644 --- a/src/compat/kstest2.m +++ b/src/compat/kstest2.m @@ -7,7 +7,8 @@ % [h, p] = kstest2(x1, x2, alpha) % [h, p] = kstest2(x1, x2, 'alpha', alpha) % -% Two-sided test only. Asymptotic p-value after Numerical Recipes 14.3. +% Two-sided test only. Asymptotic p-value from the Kolmogorov distribution, +% with Stephens' (1970) small-sample correction applied to lambda. alpha = 0.05; if numel(varargin) == 1 && isnumeric(varargin{1}) @@ -33,17 +34,48 @@ error('kstest2: both samples must be non-empty'); end - edges = [-Inf; sort([x1; x2]); Inf]; - cdf1 = cumsum(histc(x1, edges)) / n1; - cdf2 = cumsum(histc(x2, edges)) / n2; - ks2stat = max(abs(cdf1(1:end-1) - cdf2(1:end-1))); + [xs, idx] = sort([x1; x2]); + in1 = idx <= n1; + % both ECDFs have to include every copy of a tied value before comparing + last = [diff(xs) ~= 0; true]; + d = cumsum(in1) / n1 - cumsum(~in1) / n2; + ks2stat = max(abs(d(last))); - n = n1 * n2 / (n1 + n2); - lambda = max((sqrt(n) + 0.12 + 0.11 / sqrt(n)) * ks2stat, 0); + nEff = n1 * n2 / (n1 + n2); + lambda = (sqrt(nEff) + 0.12 + 0.11 / sqrt(nEff)) * ks2stat; + pValue = min(max(ksSurvival(lambda), 0), 1); - v = 1:101; - pValue = 2 * sum((-1) .^ (v - 1) .* exp(-2 * lambda * lambda * v .^ 2)); - pValue = min(max(pValue, 0), 1); + H = (pValue <= alpha); +end - H = (alpha >= pValue); +function p = ksSurvival(lambda) +% P(K > lambda). The alternating series in exp(-2 j^2 lambda^2) needs many +% terms and cancels badly for small lambda; there the theta-function form +% of the same distribution converges in two or three terms. + if lambda <= 0 + p = 1; + return; + end + s = 0; + if lambda < 1 + c = -pi^2 / (8 * lambda^2); + for k = 1:50 + t = exp(c * (2*k - 1)^2); + s = s + t; + if t <= eps * s + break; + end + end + p = 1 - sqrt(2*pi) / lambda * s; + else + c = -2 * lambda^2; + for j = 1:50 + t = exp(c * j^2); + s = s + (-1)^(j - 1) * t; + if t <= eps * abs(s) + break; + end + end + p = 2 * s; + end end diff --git a/tests/test_compat.m b/tests/test_compat.m index f20a7c3..2a8ace3 100644 --- a/tests/test_compat.m +++ b/tests/test_compat.m @@ -82,6 +82,29 @@ %! assert(kstest2(a, b, 0.01), true); %! assert(kstest2([1 2 3 4], [1.1 2.1 3.1 4.1], 0.01), false); +%!test +%! % kstest2() - p-values across lambda 0.24..1.44, taken from the 101-term +%! % series the shim summed first, so rewriting the series cannot move them. +%! % Shifting b by k - 0.5 makes D exactly k/10. +%! a = 1:10; +%! expected = [0.9999999942894181 0.97478924654099508 0.67507815371659508 ... +%! 0.31285267601695582 0.11084033741322809 0.031046781145641307]; +%! for k = 1:6 +%! [~, p, d] = kstest2(a, (1:10) + k - 0.5); +%! assert(d, k/10, 1e-15); +%! assert(p, expected(k), 1e-14); +%! end + +%!test +%! % kstest2() - tied values across both samples, D checked against the +%! % ECDF difference taken directly at every distinct value +%! x1 = [1 2 2 3 3 3]; +%! x2 = [2 3 3 4 4 5 1]; +%! [h, p, d] = kstest2(x1, x2); +%! assert(d, 3/7, 1e-15); +%! assert(p, 0.46838502154475359, 1e-14); +%! assert(h, false); + %!test %! % fspecial() - gaussian column kernel, values from the image package %! f = fspecial('gaussian', [5 1], 4); From c19f847515af0349d9d69f3fcf3a00e08e8f3e10 Mon Sep 17 00:00:00 2001 From: Grzegorz Sterniczuk Date: Sun, 25 Oct 2026 15:01:30 +0100 Subject: [PATCH 4/9] refactor(ui): rewrite PSdatatip without the datacursor template --- src/util/PSdatatip.m | 96 ++++++++++++++++---------------------------- 1 file changed, 34 insertions(+), 62 deletions(-) diff --git a/src/util/PSdatatip.m b/src/util/PSdatatip.m index 1edf232..a49adb0 100644 --- a/src/util/PSdatatip.m +++ b/src/util/PSdatatip.m @@ -1,11 +1,8 @@ -function [output_txt] = PSdatatip(obj,event_obj) -%% Display the position of the data cursor -% obj Currently not used (empty) -% event_obj Handle to event object -% output_txt Data cursor text string (string or cell array of strings). -% this is a minor modification of the Matlab datatip tool to display -% relevant units for this project, deg/s and time with ms precision -% - B. White +function txt = PSdatatip(obj, evt) +% datacursormode UpdateFcn, MATLAB only (Octave goes through PSdatatip_click). +% Log viewer traces get up to 6 significant digits on x so time keeps ms +% precision; below -logviewerYscale the lower panel reads in percent. +% Spectrogram images show %T, Hz and the value under the cursor. % % ---------------------------------------------------------------------------------- % "THE BEER-WARE LICENSE" (Revision 42): @@ -17,62 +14,37 @@ global logviewerYscale -fontsz2=16; +fontsz2 = 16; try - a=event_obj.Target.Type; - c=event_obj.Target.Color; + a = evt.Target.Type; + c = evt.Target.Color; catch end -c1=[0.9300 0.5000 0.3000]; -c2=[0.3000 0.6500 0.9500]; -if ~strcmp(a,'image') % ugly workaround - pos = get(event_obj,'Position'); - if pos(1)<100, - dgts=5; - else - dgts=6; - end - if pos(2) > -logviewerYscale - output_txt = {['x: ',num2str(pos(1),dgts)],... - ['y: ',num2str(pos(2),4)]}; - else - output_txt = {['sec: ',num2str(pos(1),dgts)],... - ['%: ',num2str(((pos(2)+(logviewerYscale*2)) / (logviewerYscale/100)),4)]}; - end - - -% dataTipH=plot([pos(1) pos(1)], [-2400 2400],'r-'); -% get(dataTipH) - if c==c1 | c==c2 - output_txt = {['x: ',num2str(pos(1),4)],... - ['y: ',num2str(pos(2),4)]}; - end - % If there is a Z-coordinate in the position, display it as well - if length(pos) > 2 - output_txt{end+1} = ['Z: ',num2str(pos(3),4)]; - end - set(findall(gcf,'type','hggroup'),'FontSize',fontsz2,'FontWeight', 'bold') - else - pos = get(event_obj,'Position'); - output_txt = {['X: ',num2str(pos(1),4)],... - ['Y: ',num2str(pos(2),4)]}; +c1 = [0.9300 0.5000 0.3000]; +c2 = [0.3000 0.6500 0.9500]; +p = get(evt, 'Position'); - % If there is a Z-coordinate in the position, display it as well - if length(pos) > 2 - output_txt{end+1} = ['Z: ',num2str(pos(3),4)]; - end - if strcmp(a,'image') -% pos = get(event_obj,'Position'); -% output_txt = {['X: ',num2str(pos(1),4)],... -% ['Y: ',num2str(pos(2),4)]}; - - y=(obj.Parent.YLim(2)-pos(2)) / (.3); - output_txt = {['%T: ',num2str(pos(1),4)],... - ['Hz: ',num2str(y,4)]}; - - z=event_obj.Target.CData(pos(2),pos(1)); - output_txt{end+1} = ['Z: ',num2str(z,4)]; - end - set(findall(gcf,'type','hggroup'),'FontSize',fontsz2,'FontWeight', 'bold') +if ~strcmp(a, 'image') + if p(1) < 100 + dgts = 5; + else + dgts = 6; + end + if p(2) > -logviewerYscale + txt = {['x: ' num2str(p(1), dgts)], ['y: ' num2str(p(2), 4)]}; + else + txt = {['sec: ' num2str(p(1), dgts)], ... + ['%: ' num2str((p(2) + logviewerYscale*2) / (logviewerYscale/100), 4)]}; + end + if c == c1 | c == c2 + txt = {['x: ' num2str(p(1), 4)], ['y: ' num2str(p(2), 4)]}; + end + if numel(p) > 2 + txt{end+1} = ['Z: ' num2str(p(3), 4)]; + end +else + hz = (obj.Parent.YLim(2) - p(2)) / .3; + txt = {['%T: ' num2str(p(1), 4)], ['Hz: ' num2str(hz, 4)], ... + ['Z: ' num2str(evt.Target.CData(p(2), p(1)), 4)]}; end - +set(findall(gcf, 'type', 'hggroup'), 'FontSize', fontsz2, 'FontWeight', 'bold') From 903cdfbdd937f7d124ed5f8ee36d665cb1394b1b Mon Sep 17 00:00:00 2001 From: Grzegorz Sterniczuk Date: Sun, 25 Oct 2026 19:57:05 +0100 Subject: [PATCH 5/9] fix(spectral): show the gyro filter delay and phase for gyroUnfilt logs --- src/plot/PSplotSpec2D.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plot/PSplotSpec2D.m b/src/plot/PSplotSpec2D.m index 4ca2787..f5d5d59 100644 --- a/src/plot/PSplotSpec2D.m +++ b/src/plot/PSplotSpec2D.m @@ -381,8 +381,10 @@ else tmpDbgIdx = struct('GYRO_SCALED',6,'GYRO_FILTERED',3,'RC_INTERPOLATION',7,'FFT_FREQ',17,'FEEDFORWARD',59); end + % BF 4.5+ logs gyroUnfilt whatever the debug mode, and 2025.12 has no GYRO_SCALED + hasPrefilt_ = isfield(T{tmpFileIdx}, 'gyroPrefilt_0_') || debugmode(tmpFileIdx) == tmpDbgIdx.GYRO_SCALED || debugmode(tmpFileIdx) == tmpDbgIdx.GYRO_FILTERED || debugmode(tmpFileIdx) == 1 || debugmode(tmpFileIdx) == 0; if get(guiHandlesSpec2.Delay, 'Value') == 1 && a == 1 - if debugmode(tmpFileIdx) == tmpDbgIdx.GYRO_SCALED || debugmode(tmpFileIdx) == tmpDbgIdx.GYRO_FILTERED || debugmode(tmpFileIdx) == 1 || debugmode(tmpFileIdx) == 0 + if hasPrefilt_ h=text(65, climScale2(get(guiHandlesSpec2.checkboxPSD, 'Value')+1)-(f*4), ['Gyro Filter: ' Debug01{tmpFileIdx} 'ms | Dterm Filter: ' FilterDelayDterm{tmpFileIdx} 'ms']); set(h,'Color',[lineCol],'fontsize',fontsz); else @@ -404,7 +406,7 @@ end end if get(guiHandlesSpec2.Delay, 'Value') == 4 && a == 1 - if debugmode(tmpFileIdx) == tmpDbgIdx.GYRO_SCALED || debugmode(tmpFileIdx) == tmpDbgIdx.GYRO_FILTERED || debugmode(tmpFileIdx) == 1 || debugmode(tmpFileIdx) == 0 + if hasPrefilt_ h=text(65, climScale2(get(guiHandlesSpec2.checkboxPSD, 'Value')+1)-(f*4), ['Gyro Phase: ' num2str(gyro_phase_shift_deg(tmpFileIdx)) 'deg | Dterm Phase: ' num2str(dterm_phase_shift_deg(tmpFileIdx)) 'deg']); set(h,'Color',[lineCol],'fontsize',fontsz); else From 274e17de456f23e8385163334cfdfa889f4cfa6a Mon Sep 17 00:00:00 2001 From: Grzegorz Sterniczuk Date: Sun, 25 Oct 2026 19:57:05 +0100 Subject: [PATCH 6/9] fix(ui): no all-clear Autotune banner when no axis could be measured --- src/ui/PSautotuneUI.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ui/PSautotuneUI.m b/src/ui/PSautotuneUI.m index c2e67bc..dab8ba7 100644 --- a/src/ui/PSautotuneUI.m +++ b/src/ui/PSautotuneUI.m @@ -334,6 +334,14 @@ function tick(frac, msg) end end lines = {}; + if numel(bad) == 3 + % nothing was measured, so there is no verdict either way + allWell = false; + headline = 'NO AXIS COULD BE MEASURED'; + lines{end+1} = sprintf('%s could not be read from this log.', strjoin(bad, ' and ')); + lines{end+1} = 'The reason is shown in each plot.'; + return + end allWell = isempty(flagged); if ~allWell verb = 'NEEDS'; From 9418b4c5768cb5a62da165380db860d86dbdb065 Mon Sep 17 00:00:00 2001 From: Grzegorz Sterniczuk Date: Sun, 25 Oct 2026 19:57:05 +0100 Subject: [PATCH 7/9] fix(filter-sim): centre the Test Signal preview on the trimmed flight --- src/ui/PSTestSignalConfig.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/PSTestSignalConfig.m b/src/ui/PSTestSignalConfig.m index 4c90644..b7a026c 100644 --- a/src/ui/PSTestSignalConfig.m +++ b/src/ui/PSTestSignalConfig.m @@ -217,7 +217,8 @@ function mkSection(txt, col) winSecs = [0.5 1 2 5 inf]; wSec = winSecs(winIdx); - idx = tIND{fileIdx}; + % tIND is a mask; centre the preview on the samples it keeps + idx = find(tIND{fileIdx}); if isempty(idx), idx = 1:N; end midSample = round(mean([idx(1) idx(end)])); if wSec >= tFull(end) From be98a0aa996f68351c4ba5a13d85cc74bb21f370 Mon Sep 17 00:00:00 2001 From: Grzegorz Sterniczuk Date: Sun, 25 Oct 2026 19:57:05 +0100 Subject: [PATCH 8/9] fix(ui): draw log and field names as plain text, not TeX --- PIDscope.m | 3 +++ src/plot/PSplotSpec2D.m | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/PIDscope.m b/PIDscope.m index 3568f54..7308de1 100644 --- a/PIDscope.m +++ b/PIDscope.m @@ -86,6 +86,9 @@ set(0,'defaultUicontrolFontName', 'Helvetica') % defaultUicontrolFontSize is set after fontsz is calculated (below) +% plots carry log names and field names (quad_bf.01.csv, debug_0_): TeX would make subscripts of them +set(0,'defaultTextInterpreter', 'none') +set(0,'defaultAxesTickLabelInterpreter', 'none') %%%% assign main figure handle and define some UI variables PSfig = figure(1); diff --git a/src/plot/PSplotSpec2D.m b/src/plot/PSplotSpec2D.m index f5d5d59..1d3e652 100644 --- a/src/plot/PSplotSpec2D.m +++ b/src/plot/PSplotSpec2D.m @@ -491,6 +491,8 @@ else h=legend(legnd, 'Location','NorthEast'); end + % entries carry log file names; Octave has no root default for the legend interpreter + set(h, 'Interpreter', 'none'); try PSstyleLegend(h, th); catch, end end catch, end @@ -504,7 +506,7 @@ delete(findobj(PSspecfig2, 'Tag', 'prefiltWarn')); axW_ = findobj(PSspecfig2, 'Type', 'axes', 'Tag', 'PSspec2_1'); if ~isempty(axW_) - text(axW_, 0.5, 0.5, {'No pre-filter gyro data.', 'Requires gyroUnfilt (BF 4.5+) or debug\_mode = GYRO\_SCALED.'}, ... + text(axW_, 0.5, 0.5, {'No pre-filter gyro data.', 'Requires gyroUnfilt (BF 4.5+) or debug_mode = GYRO_SCALED.'}, ... 'Units', 'normalized', 'HorizontalAlignment', 'center', 'FontSize', fontsz+1, ... 'Color', [.8 .3 .3], 'Tag', 'prefiltWarn'); end From 2acb03647c5928b6da61620c8fdba427b31ffbf2 Mon Sep 17 00:00:00 2001 From: Grzegorz Sterniczuk Date: Sun, 25 Oct 2026 21:17:00 +0100 Subject: [PATCH 9/9] chore: bump version to 26.10.1 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 8a94b99..5567570 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -26.10.0 +26.10.1