On Sat, Feb 28, 2009 at 1:23 PM, per freem <perfreem@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.