Re: [Matplotlib-users] Axes3d have improved handling of label placement yet

2013-08-02 Thread Benjamin Root
On Sun, Jul 28, 2013 at 7:14 AM, Jeffrey Spencer jeffspenc...@gmail.comwrote:

 Ben,

 Thanks that works great and also one more question. If you look at the
 previous example. I have noticed that at the angle the figure is at the
 ticklabels look like they are at the center of the grid boxes. This is not
 the case because if you turn it to the side as the example below image.pdf.
 The 0.00, 0.05 on the I_lw axis are supposed to be at the actual tick marks.



Thus, can the axis be manually moved too? This isn't a huge deal but I was
 just wondering if it was possible to offset the ticklabels. I looked in the
 _axinfo but looks like for ticklabel their is only a space_factor parameter.

 Cheers,
 Jeff


The effect you are seeing is that the tick labels are set to be below and
in front of the tick marks. More specifically, what happens is that the
ticklabels (and the axis label) are offsetted away from the center of the
domain. The space_factor value you found is just some empirical value that
I have found to work fairly well.  Effectively, there is only a
radial-like control over the spacing, not a finer-grained control.

That being said, you can modify the va value of the _axinfo to control
the vertical allignment of the labels. I would wonder if messing around
with that might have some desired impact.  Another possibility is to use
'\n' characters before or after the main text for the label to make an
apparent shift.  Just some ideas to play around with.

Cheers!
Ben Root
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Axes3d have improved handling of label placement yet

2013-07-18 Thread Benjamin Root
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 jeffspenc...@gmail.comwrote:

 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=48808831iu=/4140/ostg.clktrk
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
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=48808831iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users