[Tioga-users] Help with legend placement on scatter plot

David MacMahon davidm at astro.berkeley.edu
Tue May 6 20:52:44 EDT 2008


Quick question: Must one know in advance how many legend entries  
there will be so that legend_bottom_margin can be set appropriately  
(assuming the legend starts near the top)?  If so, how does one  
calculate the legend height?  Presumably, legend_bottom_margin = 1.0  
- legend_top_margin - legend_height, where legend_height depends on  
the number of entries and each entry's height.

Thanks,
Dave

On May 6, 2008, at 15:00 , David MacMahon wrote:
> Wow, that was easy!
>
> It might be nice to have a "legend_margins" convenience method in  
> FigureMaker...
>
> def legend_margins
>   [legend_left_margin, legend_right_margin, legend_top_margin,  
> legend_bottom_margin]
> end
>
> ...assuming it keeps track of such things, but I'm not sure it  
> exposes "margin" info.  Perhaps it could use "legend_bottom" etc.  
> methods analogous to "frame_bottom" etc.?
>
> Dave
>
> _______________________________________________
> Tioga-users mailing list
> Tioga-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/tioga-users



More information about the Tioga-users mailing list