|
When I increase the xlabel fontsize, it overlaps with the tick label.
How can I adjust the distance between tick label and xlable (or ylabel)? Please help me. -- Yong-Duk Jin ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Matplotlib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
On Sat, Apr 19, 2008 at 9:07 AM, Yong-Duk Jin <[hidden email]> wrote:
> When I increase the xlabel fontsize, it overlaps with the tick label. > How can I adjust the distance between tick label and xlable (or ylabel)? > Please help me. This shouldn't happen if the font metrics are correct, since the label gets the bounding box of the tick labels and adjusts itself correctly. What mpl version and backend are you using? To increase the distance, you can increase the LABELPAD parameter ax.xaxis.LABELPAD = 8 # default is 5 JDH ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Matplotlib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
> This shouldn't happen if the font metrics are correct, since the
> label gets the bounding box of the tick labels and adjusts itself > correctly. This behavior is causing a problem for me. I have two figures with different sets of yticklabels (100 vs 1000), and the ylabels are in different places as a result. I'd like to have the two ylabels be in the exact same position. > To increase the distance, you can increase the LABELPAD parameter > > ax.xaxis.LABELPAD = 8 # default is 5 I am changing this property, but nothing changes on the figure. From ipython, and when the figure is visible, I type: gca().yaxis.labelpad = 100 but the ylabel doesn't move. I'm in 0.98pre from svn. What am I doing wrong? -- Chris ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
On Wed, May 21, 2008 at 11:13:55AM -0700, Christopher Brown wrote:
> I am changing this property, but nothing changes on the figure. From > ipython, and when the figure is visible, I type: > > gca().yaxis.labelpad = 100 > > but the ylabel doesn't move. I'm in 0.98pre from svn. What am I doing > wrong? Yust a guess: Try draw() to redraw the hole figure. By, Friedrich ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
| Powered by Nabble | Edit this page |
