Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customizing matplotlib image display to add copy/paste

I would like to customize matplotlib image display so that i can type control-c and it will copy the image to the clipboard so then i can copy it to openoffice spreadsheet to organize all of my raw data and image results. Is there any way to do this? Thanks!

like image 900
josh Avatar asked Mar 15 '26 15:03

josh


1 Answers

If you're using the wx backend, FigureCanvasWxAgg has a Copy_to_Clipboard method you can use. You could bind the CTRL+C key event to call this method. For an example, see this sample code.

like image 124
ars Avatar answered Mar 18 '26 03:03

ars



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!