Mapping toolbox: how to control the colorscale with contourfm (CLim or caxis)

1 view (last 30 days)
Hello,
I have a homemade colormap to display meteorology data, with white in the center (designed to represent values close to 0). The data themselves do not necessarily have the opposite min and max.
I used to plot fields using contourfm, then do caxis([-N N]), which gave the result I wanted (white for 0 values, blue negative, red positive). This worked also with several subplots with different data (e.g. from different seasons), the colorscale was the same for all plots.
However, it does not work anymore since matlab2010, as caxis has no effect on graphs from contourm. I tried using surfacem instead, where strangely caxis still works, but the plots are less nice especially with low-resolution data, even with facecolor=interp.
Any possible workaround? I am really stuck here...
Thank you,
Francis

Answers (0)

Categories

Find more on Contour Plots in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!