matplotlib legend remove box

To remove the box around the legend in Matplotlib using C language, you can use the plt.legend() function with the frameon parameter set to False. Here's an example:

#include <stdio.h>
#include <matplotlib/c.h>

int main() {
    // Your code to create the plot

    // Remove the box around the legend
    plt.legend(frameon=False);

    // Your code to display the plot

    return 0;
}

This will remove the box around the legend in your Matplotlib plot.