How to stretch cos fit
3 views (last 30 days)
Show older comments
I need stretch cos function to the borders. The question is - how?
0 Comments
Answers (2)
Walter Roberson
on 9 Apr 2021
axes([0 0.75 0.75 1.03]); %must do this before plot
h(1) = scatter(xData, yData, 'b+', 'DisplayName', 'data');
hold on
h(2) = plot(fitresult); %when no arguments are given, plots for current axes limits
hold off
6 Comments
Walter Roberson
on 10 Apr 2021
Because marker sizes can be set point by point for scatter(), it does not seem to reliably set the legend marker size even if the size is the same for all of the entries.
Please see the below for a work-around involving plotting extra hiidden objects:
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!