Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 44f0335
  • /
  • plotFigs.m
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:073becb64225d31ef5d7287de0392939529d6b14
directory badge Iframe embedding
swh:1:dir:44f0335f14cc724878407b1aa18d93fa80435edd
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
plotFigs.m
tdLittlePlanet = loadTDcellarray("littlePlanetTauERes_5001-25-2022_12-49.mat");
tdBeam = loadTDcellarray("beamTauERes_2001-23-2022_21-08.mat");
tdCantileverPull = loadTDcellarray("tauEResPull_5001-25-2022_12-27.mat");
% tdCantileverPull = loadTDcellarray("tauEResPull_5001-24-2022_16-41.mat");

ERresLittlePlanet = AnalyseTDtauE(tdLittlePlanet,logspace(-10,0,50),2);
ERresBeam = AnalyseTDtauE(tdBeam,logspace(-10,0,20),3);
ERresCantileverPull = AnalyseTDtauE(tdCantileverPull,logspace(-10,0,50),2);

allErrors = [ERresLittlePlanet(:,2) ; ERresBeam(:,2) ; ERresCantileverPull(:,2)];
% allErrors = [ERresCantileverPull(:,2)];
leftYlims = minmax(log10(allErrors'));

[f1,f2] = plotERres(ERresLittlePlanet, leftYlims);
saveas(f1, "benchmark/autogenFigs/littleplanetPareto.pdf");
saveas(f2, "benchmark/autogenFigs/littleplanet.pdf");
% 
[f1,f2] = plotERres(ERresBeam, leftYlims);
saveas(f1, "benchmark/autogenFigs/beamPareto.pdf");
saveas(f2, "benchmark/autogenFigs/beam.pdf");
% 
[f1,f2] = plotERres(ERresCantileverPull, leftYlims);
saveas(f1, "benchmark/autogenFigs/cantileverPullPareto.pdf");
saveas(f2, "benchmark/autogenFigs/cantileverPull.pdf");

function  [f1, f2]=plotERres(ERres, leftYLims)
    speedup = ERres(:,1);
    maxError = ERres(:,2);
    tre = ERres(:,3);
    logtre = log10(tre);

    figure;
    scatter(1./speedup,log10(maxError));
    title('Pareto Speedup');
    ylabel('log maxError');
    xlabel('speed factor');
    f1 = gca;
    
    figure;
    yyaxis left;
    plot(logtre, log10(maxError));
    ylabel('log max error (meters) size scaled');
%     ylim(leftYLims);
    yyaxis right;

    plot(logtre,1./speedup);
    title('Impact of the elastic threshold');
    xlabel('log tau E');
    ylabel('factor');
    f2 = gca;
end

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top