Task: Save Matplotlib Figure to In-Memory Buffer and Load with PIL
Task: Save Matplotlib Figure to In-Memory Buffer and Load with PIL: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that creates a matplotlib figure, saves it to an in-memory buffer (without writing to disk), and then loads that image data into a PIL Image object.
Part of PrimeIntellect/Terminal-Lego-15k.