Hi,
I've got a file that I'd like to publish, and another file I'm using to do the publishing. The original file is as such:
%% test_file.m
% Test file to see if plots are correct
% Plots have been coming out with size 1px by 1px or 1px by 0px
figure;plot([0 1], [0 1]);
The publishing code that I run is as follows:
% publishing_code.m
file_to_publish = 'test_file.m';options.showCode = true;options.evalCode = true;options.format = 'html';publish(file_to_publish, options);close all;
The issue I'm having on one of my computers is, the figures all come out with size 1px by 1px, or 1px by 0px. I'm guessing some other piece of code that I run on startup, or one of the plotting functions I wrote, is messing with the size somewhere, but I'm not quite sure what to look for. Do y'all have any ideas? Thank you.
Best Answer