Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Postcrossplot - FontSize (of colorbar und title) - Comsol35a

Please login with a confirmed email address before reporting spam

Hi

could somebody tell me how I can change the fontsizes while using the "postcrossplot"-function?

I have already tried the following

postcrossplot(fem,1,[-20 20;0 0], ...
'surfdata','u', ...
'surfmap','jet(1024)', ...
'title','Re(v(x,t)) with x_2=0');
xlabel('x_1','FontSize',15);
ylabel('t','FontSize',15);
set(gca,'XTickLabel',{'-20';'-15';'-10';'-5';'0';'5';'10';'15';'20'});
set(gca,'FontSize',15);
view([0,90]); axis tight;

Unfortunately the fontsize of the colorbar and of the title is unchanged. Now I have tried

postcrossplot(fem_frozen,1,[-20 20;0 0], ...
'surfdata','u', ...
'surfmap','jet(1024)', ...
'surfbar','off');
title('Re(v(x,t)) with x_2=0','FontSize',15);
xlabel('x_1','FontSize',15);
ylabel('t','FontSize',15);
set(gca,'XTickLabel',{'-20';'-15';'-10';'-5';'0';'5';'10';'15';'20'});
set(gca,'FontSize',15);
view([0,90]); axis tight;
hc1=colorbar;
set(hc1,'FontSize',15);

In this case the fontsize problem has been fixed. But now the colorbar goes from 0 to 1 because it doesn't have any information about the z-values of the plot.

It would be grateful if somebody could show me one way out of this dilemma.

Thank you.

1 Reply Last Post 06.08.2010, 09:40 GMT-4

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 06.08.2010, 09:40 GMT-4
you can use the set command of matlab, no need to look for it specifically in comsol's libraries.

this will do the trick probably:

set(gca, 'FontSize',50)
you can use the set command of matlab, no need to look for it specifically in comsol's libraries. this will do the trick probably: set(gca, 'FontSize',50)

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.