Matplotlib-users Digest, Vol 50, Issue 37

Hello all,

I need to format the values of graphic to KHz…my values are in Hz
see at idle python it displays the values as: 3000 3050 3100 … 3400 , but I need to go where it will be displayed KHz: 3.0 3.1

can someone help me?


On Thu, Jul 15, 2010 at 10:48 AM, <matplotlib-users-request@…1544…> wrote:

Send Matplotlib-users mailing list submissions to

To subscribe or unsubscribe via the World Wide Web, visit


or, via email, send a message with subject or body ‘help’ to

You can reach the person managing the list at

When replying, please edit your Subject line so it is more specific

than “Re: Contents of Matplotlib-users digest…”

Today’s Topics:

  1. scientific notation (Wal?ria Antunes David)

Message: 1

Date: Thu, 15 Jul 2010 10:41:52 -0300

From: Wal?ria Antunes David <waleriantunes@…287…>

Subject: [Matplotlib-users] scientific notation




Content-Type: text/plain; charset=“iso-8859-1”

Hi all,

I have a code base so that:

from pylab import *

x = arange (3000,3400)

y = -108 * (3.0e14 ** 2)/x**2



plot(x, y)

Well… the values of the function range(3000,3400) are in Hz…i need

to pass GHz which would be in scientific notation as follows bellow:

3000 Hz = 3,0 ? 10-6 GHz

3400 Hz = 3,4 x 10-6 Ghz

How do I make the graph x-axis is shown in figures

scientific notation, for this currently so


in scientific notation is: (3.0e-6, 3.4e-6)

Can someone help me?

See my attachment…

I need to show this values in scientific notation…


-------------- next part --------------

An HTML attachment was scrubbed…

-------------- next part --------------

A non-text attachment was scrubbed…

Name: current_image.jpg

Type: image/jpeg

Size: 35656 bytes

Desc: not available

This email is sponsored by Sprint

What will you do first with EVO, the first 4G phone?


Matplotlib-users mailing list

End of Matplotlib-users Digest, Vol 50, Issue 37