Finding the best fitting distribution - bars plotted with gap

1 次查看(过去 30 天)
Hi
I am using the function allfitdist to find the best fitting distribution(s) to my data (Allfitdist was once recommended on the Matlab blog http://blogs.mathworks.com/pick/2012/02/10/finding-the-best/) The code is simple ('X' is my data, in my case a 2060x1 double array):
[ret, PD] = allfitdist(X,'PDF');
set(gca,'FontSize',20);
set(gcf,'Position',[0 0 600, 600]);
set(gcf, 'color', [1 1 1]);
axes('Position',[0 0 1 1],'Xlim',[0 1],'Ylim',[0 1],'Box','off','Visible','off','Units','normalized', 'clipping' , 'off');
text(0.5, 1,sprintf('Fitting distributions to the real data'),'HorizontalAlignment' ,'center','VerticalAlignment', 'top', ...
'FontWeight', 'bold', 'FontSize', 30);
filename = sprintf('epdf');
print([foldername '/' filename],'-dpdf');
saveas(gcf, [foldername '/' filename '.fig'], 'fig');
What happens however is that there is a gap between the bars of my plottet data (if the image is not enlarged the gaps appear just as black areas between the bars, upon zooming it is clear that there is a gap between the bars). How can I plot my data such that the bars are without any gaps inbetween them?
Many thanks

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by