Recently I wrote a visualizer for explain query responses from postgresql. I also integrated it into pgcli and it got merged few days ago. You can install it currently with:
pip install git+https://github.com/dbcli/pgcli@main
or wait for
3.4.2 release and update.
To switch between normal mode and explain mode you can press