Display comma instead of dot at contour levels?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ingo Rück
am 14 Dez. 2017
Kommentiert: Ingo Rück
am 17 Dez. 2017
Hello everyone,
the title is basically my whole question. I want to change the labels on the contour levels of a contour plot so that the numbers have a comma instead of a dot (its a german thing).
I've read that following code would have worked in older versions of Matlab - C and h being the outputs of the contour function:
acl=clabel(C,h,'FontSize',10,'Color','k');
for i=1:length(acl)
oldlabel=get(acl(i), 'String');
newlabel=strrep(oldlabel, '.', ',');
set(hcl(i),'String',newlabel);
end
In the Matlab version I'm using, clabel is returning a "GraphicsPlaceholder"-Object, which I cannot change in the same way. How would I change the labels in Matlab version R2017a ?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 14 Dez. 2017
Yair recently posted some details on customizing contour lines and labels. See https://undocumentedmatlab.com/blog/customizing-contour-plots-part2
6 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Contour Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!