By the way, using h=plot( fitresult); gives me a wrong fitted plot and hence I have to use h = plot( fitresult, xData, yData);
Change plot properties generated from a curve fitting
19 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Very Determined
il 15 Nov 2019
Modificato: Very Determined
il 18 Nov 2019
Hello,
I am trying to remove the markers and change the line properties from a plot made by rational fit. I tried different options such as Marker, none and Linestyle but it did not work. I have event tried h.Marker='none' and no success. Any idea how to solve this?
[fitresult, gof] = fit( xData, yData, ft, opts );
% h = plot( fitresult, xData, yData, 'Linestyle', 'none','Color','k', 'Marker',marker_style{i} );
h = plot( fitresult, xData, yData);
h.Marker = 'none';
Thanks
3 Commenti
Joe Vinciguerra
il 16 Nov 2019
I’m not at my computer right now, but can you access the properties you want from the property inspector dialog? Or are they within a "child" of h?
Risposta accettata
Joe Vinciguerra
il 16 Nov 2019
Since the object contains 2 lines try calling them specifically. For example:
h(1).Marker='none'
h(2).Color=[.5 .5 .5]
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Specifying Target for Graphics Output in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!