I have a problem with labels overlapping the tickmark labels. No matter changing the fontsize or plot_size or other things. I can’t find something that works properly. I found somethwhere setting linespacing should work but this seems to do nothing in my case.
Any good suggestions or updates on this??
I’m using 1.2.x matplotlib version. I put a plot here showing how the label overlaps but I know this has been a problem in the past.
Also, I couldn’t figure out how to get access to the _axinfo like stated in the documentation for a possible fix. Where is this located?? How do I acess or modify it as a temporary fix??
test1.pdf (41.9 KB)
Jeffrey,
Sorry if the documentation is a bit vague on the _axinfo front. It was intentionally done that way to keep the number of people dependent upon that kludge down. It was created as an improvement upon the previous hard-coded constants that completely prevented anybody from making any customizations at all.
The spacing of tick labels for an axis can be modified like so:
ax.xaxis._axinfo[‘ticklabel’][‘space_factor’] = 0.7 # This is the default value. Make it less to bring it closer to the axis
and for the axis label:
ax.xaxis._axinfo[‘label’][‘space_factor’] = 1.6 # Again, this is the default value. Make it larger to move it away from the axis
I hope that helps!
Ben Root
···
On Thu, Jul 18, 2013 at 3:18 AM, Jeffrey Spencer <jeffspencerd@…287…> wrote:
I have a problem with labels overlapping the tickmark labels. No matter changing the fontsize or plot_size or other things. I can’t find something that works properly. I found somethwhere setting linespacing should work but this seems to do nothing in my case.
Any good suggestions or updates on this??
I’m using 1.2.x matplotlib version. I put a plot here showing how the label overlaps but I know this has been a problem in the past.
Also, I couldn’t figure out how to get access to the _axinfo like stated in the documentation for a possible fix. Where is this located?? How do I acess or modify it as a temporary fix??
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users