How to edit the legend of a plot

User: "ChristianKehrer"
Altair Community Member
Updated by ChristianKehrer

Dear Compose experts,

 

is there a way to edit the legend of a plot in compose, i.e. position and font size?

As far as I know, for the position something like the following works:

legend('Location', 'northeast') oder legend('Location', 'northwest')

 

...but, what about the size?

 

Thank you in advance for your help!
Christian

Find more posts tagged with

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

    Hi Christian,

     

    To edit the legend font size, you must right click on the legend and change the font size.

    hope this helps you.

     

    Thanks,

    Priyanka N

     

     

    User: "ChristianKehrer"
    Altair Community Member
    OP
    Updated by ChristianKehrer

    Thank you, Priyanka!

     

    Meanwhile, I found a second option as follows:

    set (get(gca, 'xlabel'), 'fontsize', 14);

     

    Best

    Christian