Does the Basic Fitting Tool have an option to choose the color of the fitted curves?

21 views (last 30 days)
After plotting data in a MATLAB figure window, I would like to use the Basic Fitting Tool to plot a fit through the data in a contrasting color.
The colors of the fitted curves, however, seem to be fixed, and may coincide with the color of my data.
Can I change the color of the fitted curves, or do I have to change the color of my data?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
The ability to change the color of a fitted curve is not available in the Basic Fitting Tool in MATLAB.
There are several work-arounds:
o Change the color of the lines using MATLAB Plot Tools, available at the top of the figure window.
o Change the color of the lines using the MATLAB SET command to change the COLOR property of the line object.
o Change the color of the data using the methods above.
o Change the color of the data when plotting.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!