Figure style in Matlab

2 visualizaciones (últimos 30 días)
rob
rob el 9 de Dic. de 2016
Comentada: rob el 9 de Dic. de 2016
Hello everyone,
I was wondering if it is possible to obtain a figure like the one that I'm showing in Matlab, considering the axes appearence, linetype, dashing type, font, etc.
I know the basic commands to create a plot with these kind of elements, but I'm not able to obtain something that looks really like this. I added some basic code with sample data.
Do you think this is possible?
Thank you in advance for your help, Rob
if true
% code
figure; plot(curvbilin,mombilin,'r',curv,mom,'b--','LineWidth',2); grid on;
xlabel('Curvature(Rad/m)','FontSize',16); ylabel('Moment (kN-m)','FontSize',16);
title('Moment - Curvature Relation','FontSize',16);
end
curv = [0 0.000348782801217829 0.000731451578631801 0.00113383420895243 0.00159091538526201 0.00209818329966542 0.00263385822170666 0.00319010642289088 0.00375924251506820 0.00433658482777401 0.00491182450578907 0.00549714498082519 0.00607005786152110 0.00663518168769400 0.00720263177325871 0.00859372429724524 0.0101522822752298 0.0140965742267439 0.0173012981105159 0.0203369942516123 0.0232422791446998 0.0261475640377873 0.0284418262392052 0.0321415311232804 0.0352252506307493 0.0391159160042622 0.0429722095303364 0.0467427143427306 0.0545007702732337 0.0619361194628140];
mom = 0 51.6724766886765 111.323206897269 164.164669407937 205.929447780380 240.731713950399 273.190466795699 303.830112593478 333.186890212625 361.454563778077 389.302298160579 415.071696706051 441.072780596728 466.560523602040 490.526444192858 516.047223034873 529.540473073230 551.457355089585 558.572122151956 562.204123046928 562.060709567835 559.071974345410 555.033273960228 539.244332088687 520.486541468722 514.807050470832 511.267782161951 509.217669204307 507.962241012230 507.001747148358];
curvbilin = [ 0 0.00854557272349258 0.0619361194628140]; mombilin = [ 0 562.060709567835 507.001747148358];
  3 comentarios
Star Strider
Star Strider el 9 de Dic. de 2016
The script would not be as straightforward as for less complicated plots, but you can do everything in this plot in MATLAB. The arrows in the axis ends would require some experimentation.
The problem might be in defining the ‘refined’ and ‘bilinear’ data.
rob
rob el 9 de Dic. de 2016
Thanks Jan Simon and Star Strider for your reply!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Graphics en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by