Set default renderer
Asked Answered
R

1

6

I know how to change the default renderer using Matlab GUI, but I would like to use painters renderer instead of opengl all the time instead of changing it every time.

Is there a way to set default renderer in Matlab by using set command. I'm looking for command like: set(groot, 'defaultRenderer', 'painters')

Thank you!

Rusty answered 4/8, 2015 at 6:22 Comment(0)
K
7

As you can see here you can build every "default property" you wish by concatenating default + class name + property.

In your case it would be:

set(0, 'defaultFigureRenderer', 'painters')

respectively

set(groot, 'defaultFigureRenderer', 'painters')

You can check by get(groot,'default').

Be aware that the default is just set for the current session! Restarting would omit the changes. To set it permanently put the line into a start-up file .

Kulp answered 4/8, 2015 at 7:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.