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: 84
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

Hello:

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];

axesm('mercator','MapLatLimit',latlim,'MapLonLimit',lonlim,'Frame','on','Grid','on','MeridianLabel','on','ParallelLabel','on','FontSize',12,'FontWeight','bold')

hold on

load('worldlo.mat')

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

clabelm(C)

load('coast.mat')

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

colorbar('location','southoutside');

caxis([22 40]);



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.