To find the WM_CLASS
(that is the name you must put in your bspwm rule
) of any window use xprop
. Execute
$xprop |awk '/WM_CLASS/'
in a terminal, then click on the window you want to find the name of (in this case your matplotlib window) and you will get it printed to the terminal-