Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 627d292

Browse filesBrowse files
committed
Merge pull request #4530 from WeatherGod/tkwindow_fix
STY: Get rid of annoying border for Tk Canvases
2 parents 8609886 + 0cfb4fe commit 627d292
Copy full SHA for 627d292

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎lib/matplotlib/backends/backend_tkagg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_tkagg.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ def __init__(self, figure, master=None, resize_callback=None):
225225
t1,t2,w,h = self.figure.bbox.bounds
226226
w, h = int(w), int(h)
227227
self._tkcanvas = Tk.Canvas(
228-
master=master, width=w, height=h, borderwidth=4)
228+
master=master, width=w, height=h, borderwidth=0,
229+
highlightthickness=0)
229230
self._tkphoto = Tk.PhotoImage(
230231
master=self._tkcanvas, width=w, height=h)
231232
self._tkcanvas.create_image(w//2, h//2, image=self._tkphoto)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.