Setting default values for plots in Matlab 2014b (OS X 10.10)
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am running a script to plot in Matlab 2014b (OS X 10.10). In the headers I have the command set(groot,'defaultlinelinewidth',2.5); However, it has no effect on my plots. All my plots come out with Linewidth = 0.5. The same script works well in other versions of Matlab. In one of the plots, I tried plot(X,Y,'linewidth',2.5); and it worked fine. Any idea why this is happening? I have more than 20 plots in that script, and I would prefer not to change the code for each plot command. Additionally, I run the commands "get(groot,'default')"
ans =
defaultFigurePaperPositionMode: 'manual'
defaultFigurePosition: [360 278 560 420]
defaultTextInterpreter: 'latex'
defaultLineLineWidth: 2.5000
defaultLineMarkerSize: 6
defaultTextFontSize: 18
defaultAxesFontSize: 20
r = groot;
r.Children(1).LineWidth
ans =
0.5000
I really don't understand what is going on. Thanks
0 commentaires
Réponses (1)
Sean de Wolski
le 23 Oct 2014
Probably need proper capitalization. This works fine for me:
set(groot,'DefaultLineLineWidth',2.5)
plot(1:10)
2 commentaires
Ilya
le 24 Oct 2014
Experienced the same problem. This works for me:
set(0,'defaultLineLineWidth',1.5)
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!