Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions autoload/jukit/splits.vim
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,14 @@ fun! jukit#splits#_build_shell_cmd(...) abort
\. 'matplotlib.use("module://matplotlib-backend-kitty");'
\. 'plt.show.__annotations__["save_dpi"] = ' . g:jukit_savefig_dpi . ";"
elseif g:jukit_terminal == 'tmux'
let current_pane = matchstr(system('tmux run "echo #{pane_id}"'), '%\d*')
let current_pane = $TMUX_PANE
if is_outhist
let target_pane = g:jukit_outhist_title
else
let target_pane = g:jukit_output_title
endif
let cmd = cmd
\. 'matplotlib.use("module://imgcat");'
\. 'matplotlib.use("module://imgcat_jukit");'
\. 'plt.show.__annotations__["tmux_panes"] = ["'
\. current_pane . '", "' . target_pane . '"];'
\. 'plt.show.__annotations__["save_dpi"] = ' . g:jukit_savefig_dpi . ";"
Expand Down
3 changes: 2 additions & 1 deletion autoload/jukit/tmux/layouts.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
fun! s:get_pane_by_name(name, output_exists, outhist_exists) abort
if a:name == 'file_content'
let current_pane = matchstr(system('tmux run "echo #{pane_id}"'), '%\d*')
" let current_pane = matchstr(system('tmux run "echo #{pane_id}"'), '%\d*')
let current_pane = $TMUX_PANE
return current_pane
elseif a:name == 'output' && a:output_exists
return g:jukit_output_title
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import codecs, io, sys
from matplotlib._pylab_helpers import Gcf
from matplotlib.figure import Figure
from matplotlib.backend_bases import FigureManagerBase
from matplotlib.backend_bases import FigureManagerBase, FigureCanvasBase
import matplotlib.pyplot as plt

from .imgcat import imgcat
Expand Down Expand Up @@ -39,6 +39,8 @@ def show(self):
else:
imgcat(self.canvas.figure)

class FigureCanvas(FigureCanvasBase):
pass

def show(block=None):
for manager in Gcf.get_all_fig_managers():
Expand Down
File renamed without changes.