Setting default values for plots in Matlab 2014b (OS X 10.10)

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

Answers (1)

Probably need proper capitalization. This works fine for me:
set(groot,'DefaultLineLineWidth',2.5)
plot(1:10)

2 Comments

thanks for your answer. Unfortunately it doesn't work for me
Experienced the same problem. This works for me:
set(0,'defaultLineLineWidth',1.5)

Sign in to comment.

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Tags

Asked:

on 23 Oct 2014

Commented:

on 24 Oct 2014

Community Treasure Hunt

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

Start Hunting!