Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

## matplotlib-users

 [Matplotlib-users] scientific numbering on mplot3d From: Burak TUYSUZ - 2010-12-02 17:23:04 Attachments: Message as HTML ```Hi all, I am plotting a 3d surface but at the axis scientific notation works but I can not see the exponential part at the end of the axis. I mean it does simplifies 9.9*e^5 15*e^5 ... to 9.9 15 but there is no e^5 at the end of the axis that you need to multiply each value I am tired of manually adding that to the plots. How can I automatically add the divider to the top of each axis. Thank you in advance -Burak Here is the code formatter = ScalarFormatter(useMathText=True, useOffset=True) formatter.set_scientific(True) fig = plt.figure(figsize=(21,9.5)) ax = fig.add_subplot(1,2,1, projection='3d', azim=180) ax.set_xlabel('Doppler') ax.set_ylabel('Delay') ax.set_zlabel('') ax.w_xaxis.set_major_formatter(formatter) ax.w_yaxis.set_major_formatter(formatter) ```
 Re: [Matplotlib-users] scientific numbering on mplot3d From: Benjamin Root - 2010-12-03 22:20:16 Attachments: Message as HTML ```On Thu, Dec 2, 2010 at 11:22 AM, Burak TUYSUZ wrote: > Hi all, > I am plotting a 3d surface but at the axis scientific notation works > but I can not see the exponential part at the end of the axis. > I mean it does simplifies > 9.9*e^5 15*e^5 ... > to > 9.9 15 > but there is no e^5 at the end of the axis that you need to multiply each > value > I am tired of manually adding that to the plots. How can I automatically > add the divider to the top of each axis. > Thank you in advance > -Burak > > Here is the code > > > formatter = ScalarFormatter(useMathText=True, useOffset=True) > formatter.set_scientific(True) > > fig = plt.figure(figsize=(21,9.5)) > ax = fig.add_subplot(1,2,1, projection='3d', azim=180) > ax.set_xlabel('Doppler') > ax.set_ylabel('Delay') > ax.set_zlabel('') > > ax.w_xaxis.set_major_formatter(formatter) > ax.w_yaxis.set_major_formatter(formatter) > > Burak, I can confirm your bug. I have traced it down and it appears that printing the offset text (the 'e^5') is not even implemented. I will look into seeing how to implement this in mplot3d. Ben Root ```