Reputation: 33
I seem to have made some settings change where all of my MATLAB plots (plot
, plot3
, surf
, etc) show up in this red/green color scale:
I searched around forums and the MATLAB user guide but am not finding anything. It's not a huge deal, as I can enter code to fix this on each plot, but I shouldn't have to.
How to fix this?
Upvotes: 1
Views: 117
Reputation: 129
I don't know about the whole settings. These two commands can reset a figure properties (including its colormap) to its default values:
h=gcf;
reset(h)
This way you assign a handle to the last figure you have. Then, the second command resets its options to default values.
Update after Adrian's comment: Check out this page: Default Property Values It clearly shows how is it possible to regenrate the problem you have and you might need use the remove
option for removing user-defined default value. There is a factory defined colormap accessible by the function: get(groot,'factoryFigureColormap')
. This might help you too.
Upvotes: 1
Reputation: 18177
Check startup.m
you seem to have set your default colormap
to autumn
or something. Just put it back to either jet
(pre 2015a), or parula
.
Upvotes: 1