Edit plots compose

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

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.

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited October 2017

    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

  • Florian Rohrßen
    Florian Rohrßen Altair Community Member
    edited March 2020

    Can I change size of legend in 2019.1?