Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: clabelm changing fontsize and color with
Replies: 1   Last Post: Sep 9, 2013 10:00 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jonathan W Smith

Posts: 90
Registered: 12/17/10
clabelm changing fontsize and color with
Posted: Sep 7, 2013 5:43 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I want to change my contour labels from black to white and make them bold. I am not able to use properties like FontSize or FontColor in clabelm. When I tried clabel, all that appeared were the black contour labels and white background.

The code is below. What can I do to accomplish the stated goal?

o3_avgk_double_prime = ncread('/discover/nobackup/jwsmit12/MATLAB_FILES/AVERAGING_KERNELS/avgk_application2.nc', 'AVGKERN');

o3_avgk_prime = fliplr(o3_avgk_double_prime);

o3_avgk = rot90(o3_avgk_prime);

lon_contraints = linspace(-35, 35, 71);

lat_contraints = linspace(-20, 20, 41);

latlim = [-20 20];

lonlim = [-35 35];


hold on


h = displaym(POline);

set(h, 'LineWidth', 2.0, 'Color', 'k');

hold on

C = contourfm(lat_contraints, lon_contraints, squeeze(double(o3_avgk(:,:))),'Fill','on');

hold on



map_line = plotm(lat,long,'k');


caxis([22 40]);

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.