🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Edit plots compose

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Hello everyone,

 

I'm a new user of Compose (have lots of experience in Matlab and Hypermath though) and I am plotting some data. I am experiencing two problems:

1) There seems to be no legend handle. So, I cannot edit the font size of the legend in my script. Any idea how to do this (in a script, not by clicking on the legend and editing it manually)?

2) When I execute the following lines, the Ylabel completely disappears from the figure. Even when I save it, there is no (or only some of the pixels) Ylabel; it is shifted too much to the left. How can I move the ylabel (again, in a script, although I'm not even able to move it by mouse or so). Changing the position of the axes or the figure does not help and there is no 'Position' option in the label handle.

 

figure(1)
plot([1:9],[20:20:180])
set(gca,'FontSize',12)
ylabel('Reaction force [N]')
legend('test')
saveas(1,'testimg')

 

Thank you for replying.

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Hi,

     

    1) For now, there is no command to set the font size of the legend through the script. This facility will be introduced in the future release of Compose.

     

    2) The second problem is solved in the coming release of Compose (2017.3 build) will be be delivered by the end of this October.

     

    Thank you

    User: "Florian Rohrßen"
    Altair Community Member
    Updated by Florian Rohrßen

    Can I change size of legend in 2019.1?