Re: [matplotlib-devel] Tk backend different from others
Hello Ben, On 15/11/14 17:14, Benjamin Root wrote: > Second, while I haven't tried out all the backends yet, I noticed that > the Figure window for tkagg has an annoying border that the other > backends don't have. It is fairly wide, 4 pixels. I would like to get > rid of that. Does anybody object to that? I can make a PR for that and > any other border widths I find. I'm trying to switch from the MacOSX backend to the the WXAgg backend because the font handling in the first is quite a bit broken. However the black border is very annoying. Did you manage to get rid of it? Cheers, Daniele -- ___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Tk backend different from others
That's the weird thing... I couldn't! I tried a few different things and I couldn't make it go away. I'll probably give it another shot during scipy2015. Ben Root On Jun 15, 2015 4:50 AM, "Daniele Nicolodi" wrote: > Hello Ben, > > On 15/11/14 17:14, Benjamin Root wrote: > > Second, while I haven't tried out all the backends yet, I noticed that > > the Figure window for tkagg has an annoying border that the other > > backends don't have. It is fairly wide, 4 pixels. I would like to get > > rid of that. Does anybody object to that? I can make a PR for that and > > any other border widths I find. > > I'm trying to switch from the MacOSX backend to the the WXAgg backend > because the font handling in the first is quite a bit broken. However > the black border is very annoying. Did you manage to get rid of it? > > Cheers, > Daniele > > > > -- > ___ > Matplotlib-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > -- ___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Tk backend different from others
Perhaps MEP27 will make that job easier, we shall see... From: Benjamin Root To: Daniele Nicolodi Cc: matplotlib development list Sent: Monday, 15 June 2015, 13:23 Subject: Re: [matplotlib-devel] Tk backend different from others That's the weird thing... I couldn't! I tried a few different things and I couldn't make it go away. I'll probably give it another shot during scipy2015.Ben Root On Jun 15, 2015 4:50 AM, "Daniele Nicolodi" wrote: Hello Ben, On 15/11/14 17:14, Benjamin Root wrote: > Second, while I haven't tried out all the backends yet, I noticed that > the Figure window for tkagg has an annoying border that the other > backends don't have. It is fairly wide, 4 pixels. I would like to get > rid of that. Does anybody object to that? I can make a PR for that and > any other border widths I find. I'm trying to switch from the MacOSX backend to the the WXAgg backend because the font handling in the first is quite a bit broken. However the black border is very annoying. Did you manage to get rid of it? Cheers, Daniele -- ___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel -- ___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel -- ___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Tk backend different from others
On Mon, Jun 15, 2015 at 6:23 AM, Benjamin Root wrote: > That's the weird thing... I couldn't! I tried a few different things and I > couldn't make it go away. I'll probably give it another shot during > scipy2015. > I'm guessing, but did you try changing the (Tk) ``highlightthickness``? E.g., something like: widget.config(borderwidth=0, highlightthickness=0) It's a moderately classic Tkinter gotcha. You remove all the borders and there's still one (hightlightthickness) still there, but it only shows up when you interact with the Frame. Hope that helps, -Joe -- ___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Tk backend different from others
No, I did not try that one. I'll give it a shot. I don't do any Tkinter programming, so I wasn't familiar with that one. On Mon, Jun 15, 2015 at 9:23 AM, Joe Kington wrote: > > > On Mon, Jun 15, 2015 at 6:23 AM, Benjamin Root wrote: > >> That's the weird thing... I couldn't! I tried a few different things and >> I couldn't make it go away. I'll probably give it another shot during >> scipy2015. >> > I'm guessing, but did you try changing the (Tk) ``highlightthickness``? > E.g., something like: > > widget.config(borderwidth=0, highlightthickness=0) > > It's a moderately classic Tkinter gotcha. You remove all the borders and > there's still one (hightlightthickness) still there, but it only shows up > when you interact with the Frame. > > Hope that helps, > -Joe > -- ___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Tk backend different from others
I think that worked! I made a PR: https://github.com/matplotlib/matplotlib/pull/4530 On Mon, Jun 15, 2015 at 9:50 AM, Benjamin Root wrote: > No, I did not try that one. I'll give it a shot. I don't do any Tkinter > programming, so I wasn't familiar with that one. > > On Mon, Jun 15, 2015 at 9:23 AM, Joe Kington > wrote: > >> >> >> On Mon, Jun 15, 2015 at 6:23 AM, Benjamin Root wrote: >> >>> That's the weird thing... I couldn't! I tried a few different things and >>> I couldn't make it go away. I'll probably give it another shot during >>> scipy2015. >>> >> I'm guessing, but did you try changing the (Tk) ``highlightthickness``? >> E.g., something like: >> >> widget.config(borderwidth=0, highlightthickness=0) >> >> It's a moderately classic Tkinter gotcha. You remove all the borders and >> there's still one (hightlightthickness) still there, but it only shows up >> when you interact with the Frame. >> >> Hope that helps, >> -Joe >> > > -- ___ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
