HF RL Explorer

Task: Create a Single Legend for Multiple Matplotlib Subplots

Task: Create a Single Legend for Multiple Matplotlib Subplots: a task in Terminal-Lego-15k (Harbor dataset). You need to create a Python script that demonstrates how to add a single shared legend for multiple subplots in Matplotlib. The scenario involves plotting the same type of data (e.g…

The task

You need to create a Python script that demonstrates how to add a single shared legend for multiple subplots in Matplotlib. The scenario involves plotting the same type of data (e.g., economic indicators) for different countries across a 3x3 grid of subplots, where all subplots share the same line types/colors.

Part of PrimeIntellect/Terminal-Lego-15k.