On Tue, Feb 21, 2012 at 9:56 AM, Bartosz Telenczuk <
b.telenc...@biologie.hu-berlin.de> wrote:
> Hi again,
>
> I found an example that implements something like I described:
>
>
> http://matplotlib.sourceforge.net/examples/pylab_examples/anchored_artists.html?highlight=size%20bar
>
> However, it did not allow to set arbitrary position. I modified the
> example to provide the anchor_to_bbox argument of AnchoredOffsetbox that
> allows to set the scale bars position in axes coordinates. The big gotcha
> is that you have to provide the loc argument to fix the that point should
> be adjusted to the coordinates (1 for upper right, 2 for upper left, see
> the docs of legend for all the codes). This is not clear in the
> documentation.
>
> In the example attached, I add two scalebars: vertical and horizontal that
> cross at the lower right corner.
>
> Bartosz
>
>
Bartosz,
I am glad you found a solution. I will admit that the possibilities with
the bbox anchor isn't very clear. I am starting to tag all emails where
users comment of deficiencies in the documentation. I plan to use this
approach as a "TODO" list for documentation updates.
Cheers!
Ben Root
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users