On Sat, Feb 28, 2009 at 1:23 PM, per freem <perfr...@gmail.com> wrote:

> hi all,
>
> two quick questions about plotting: i am trying to very simply reset the
> font family to be 'helvetica' for my figure, in particular for the
> ticklabels. i have tried using the following:
>
> def axes_square(plot_handle):
>     plot_handle.axes.set_aspect(1/plot_handle.axes.get_data_ratio())
>
> rcParams['font.family'] = 'Helvetica'
> p = matplotlib.font_manager.FontProperties()
> p.set_family('Helvetica')
> x = rand(20)
> ax = plot(x, x, 'bo', markeredgecolor='blue', mfc='none')
> axes_square(p)
>

Unrelated to your original question, is there a reason you need axes_square
there and can't just use:

ax.set_aspect('equal')

?

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
Sent from: Norman Oklahoma United States.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to