Skip to content

Commit

Permalink
made some changes - nothing much
Browse files Browse the repository at this point in the history
  • Loading branch information
revalew committed Nov 4, 2023
1 parent 971032f commit 27c1e3c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
18 changes: 18 additions & 0 deletions src/code/useful_MATLAB.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@
noOfNeurons(i) = fscanf(fileID, '%d');
fclose(fileID);


% ----------------------------------------------------------------------------------
% LINK ThE AXES TO ZOOM ON ALL SUBPLOTS SIMULTANEOUSLY
% ----------------------------------------------------------------------------------
f = figure('Position', get(0, 'Screensize') - [0 0 60 80]); % Open the figure in "fullscreen" 60 -> width; 80 -> height
ax(1) = subplot (1, 3, 1);
imshow(I);
xlabel("Obraz oryginalny");
ax(2) = subplot(1, 3, 2);
imshow(threshI);
xlabel(["Analiza histogramu"; "Wartość progu: " + num2str(desiredThresh) ]);
ax(3) = subplot(1, 3, 3);
imshow(otsuI);
xlabel(["Metoda Otsu"; "Wartość progu: " + num2str(otsuThresh)]);
linkaxes(ax)


% ----------------------------------------------------------------------------------
% EXAMPLE OF THE LABEL FORMATTING WITH MULTIPLE LINES AND REDUCED FONT SIZE
% ----------------------------------------------------------------------------------
Expand Down Expand Up @@ -85,6 +102,7 @@
% DISPLAY THE FIGURE IN FULLSCREEN AND SAVE IT
% ----------------------------------------------------------------------------------
f = figure('Position', get(0, 'Screensize')); % Open the figure in "fullscreen"
f = figure('Position', get(0, 'Screensize') - [0 0 60 80]); % Open the figure in "fullscreen" 60 -> width; 80 -> height
plot(noOfNeurons, ElearnMean, 'LineWidth', 2);
set(gca, "FontSize", 15);
hold on
Expand Down
13 changes: 9 additions & 4 deletions src/miscellaneous/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"name": "latexmk",
"command": "latexmk",
"args": [
"-cd", // add this to change the directory to the file from which it has to be called
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
Expand All @@ -21,6 +22,7 @@
"name": "xelatex",
"command": "xelatex",
"args": ["-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-output-directory=%OUTDIR%", "%DOC%"],
// "args": ["-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-output-directory=dist", "%DOC%"], // for chapters
"env": {}
},
{
Expand Down Expand Up @@ -60,11 +62,14 @@
}
],
"latex-workshop.latex.outDir": "./../dist",
"latex-workshop.latex.search.rootFiles.include": ["**/*.tex"],
"latex-workshop.latex.search.rootFiles.include": ["**/tex/*.tex", "**/tex/chapters/*.tex"],
"latex-workshop.view.pdf.zoom": "page-fit",
"latex-workshop.latex.clean.subfolder.enabled": true, // can clean auxilary files in subfolders (which i have specified with auxdir in latexmk)
"latex-workshop.message.error.show": false, // annoying because it requires closing it manualy
"latex-workshop.latex.clean.subfolder.enabled": true, // can clean auxiliary files in subfolders (which i have specified with auxdir in latexmk)
"latex-workshop.message.error.show": false, // annoying because it requires closing it manually
"latex-workshop.message.warning.show": false, // compilation error => can already see the red "x" and no of problems so just annoying
// "latex-workshop.latex.autoClean.run": "onBuilt", // testing
"latex-workshop.latex.autoBuild.interval": 2000
"latex-workshop.latex.autoBuild.interval": 2000,
"latex-workshop.latex.rootFile.doNotPrompt": true,
"latex-workshop.latex.magic.args": ["-synctex=1", "-interaction=nonstopmode", "-file-line-error", "%DOC%", "-cd"]
// "latex-workshop.latex.rootFile.useSubFile": true,
}

0 comments on commit 27c1e3c

Please sign in to comment.