does anybody see what's wrong in the script?

Hi

It's me one more time ...
Does anybody see what's wrong in my script? I've attached the final plot as an .png file for clarity. I expected the plot to show a uniform label font, but in the upper insert you see a non-uniform labelling, why? And why do I get a bigger '1xe4'? Why do I get it at all?
I think getting an answer on these question would help me a lot. Perhaps a pointer on the tutorial is already sufficient, but I didn't answers there. I'm sorry if I overlooked something.

TIA
Christian

Here's the relevant part of my script:

     pylab.title('Beam intensity dependence of the ES slit position', fontproperties=font)
     pylab.plot(position_data,intensity_data,'k-')
     pylab.xlabel('shift [}\mu\rm{m] from closure', fontproperties=font)
     pylab.ylabel('intensity [counts/min]', fontproperties=font)
     pylab.xticks(fontproperties=font)
     pylab.yticks(fontproperties=font)
     #plotting peak broadness
     a = pylab.axes([.65,.6,.2,.2])
     pylab.plot(position_data,sigmas,'k-')
     a.set_xlim(position_data[0],position_data[-1])
     pylab.title('Peak broadness', fontproperties=font)
     pylab.xlabel(r'$\rm{shift [}\mu\rm{m] from closure}$', fontproperties=font)
     pylab.ylabel(r'$\sigma \rm{ [channels]}$', fontproperties=font)
     for labelx, labely in zip(a.get_xticklabels(),a.get_yticklabels()):
                 labelx.set_fontproperties(font)
                 labely.set_fontproperties(font)
     #plotting peak centers
     b = pylab.axes([.65,.2,.2,.2])
     pylab.plot(position_data,mus,'k-')
     b.set_xlim(position_data[0],position_data[-1])
     pylab.title('Peak center position', fontproperties=font)
     pylab.ylabel(r'$\rm{beam center [channels]}$', fontproperties=font)
     pylab.xlabel(r'$\rm{shift [}\mu\rm{m] from closure}$', fontproperties=font)
     for labelx, labely in zip(b.get_xticklabels(),b.get_yticklabels()):
                 labelx.set_fontproperties(font)
                 labely.set_fontproperties(font)

     pylab.savefig("ES_calibration.%s" % plot_format)

ES_calibration.png

The 1xe4 is telling you that your yaxis spans 0-90,000, not 0-9. This label is
called the offset, you can access it by the yaxis' get_offset method, and
then change the label's font. (The offset should respect the ticklabel
fontsize, would you please file a bugreport at the sourceforge site? I don't
have time to work on it right now.)

Alternatively, you can use OldScalarFormatter, which does not create that
label. Check out newscalarformatter_demo.py in the examples.

···

On Wednesday 07 September 2005 05:19 am, Christian Meesters wrote:

Hi

It's me one more time ...
Does anybody see what's wrong in my script? I've attached the final
plot as an .png file for clarity. I expected the plot to show a uniform
label font, but in the upper insert you see a non-uniform labelling,
why? And why do I get a bigger '1xe4'? Why do I get it at all?

--

Darren