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
Posted 4 août 2010, 04:16 UTC−4 1 Reply
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.
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 6 août 2010, 09:40 UTC−4