Matplotlib-users Digest, Vol 50, Issue 37

Hello…

I’m trying to use this to format the numbers (3000,3400) of the x axis, however when i do in the ILDE Python it’s work…but if i do using Django as bellow the image doesn’t appear…look

IDLE Python: http://pastebin.com/q7FnHhPw

Using Django: http://pastebin.com/GrcMP9iA

Help me…please…

···

On Thu, Jul 15, 2010 at 10:48 AM, <matplotlib-users-request@…1220…sts.sourceforge.net> wrote:

Send Matplotlib-users mailing list submissions to

    matplotlib-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit

    [https://lists.sourceforge.net/lists/listinfo/matplotlib-users](https://lists.sourceforge.net/lists/listinfo/matplotlib-users)

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

    matplotlib-users-request@lists.sourceforge.net

You can reach the person managing the list at

    matplotlib-users-owner@lists.sourceforge.net

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

To: matplotlib-users@lists.sourceforge.net

Message-ID:

    <AANLkTimGOkWXNsavXWyM9YcVKvhmfpBKy4Fxv10_yQXG@...288...>

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

pylab…title(“Teste”)

pylab.savefig(“imagem.png”)

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

3000,3050,3100,…,3400

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…

Wal?ria

-------------- 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 SF.net email is sponsored by Sprint

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

Visit sprint.com/firsthttp://p.sf.net/sfu/sprint-com-first



Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

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


I’m not sure I understand the question. Are there any error messages
produced?

Have you read this (about using matplotlib on a web server)?

Mike

···

http://matplotlib.sourceforge.net/faq/howto_faq.html#matplotlib-in-a-web-application-server

Hello…

I’m trying to use this to format the numbers (3000,3400) of the x axis,
however when i do in the ILDE Python it’s work…but if i do using
Django as bellow the image doesn’t appear…look

IDLE Python: http://pastebin.com/q7FnHhPw

Using Django: http://pastebin.com/GrcMP9iA

Help me…please…

On Thu, Jul 15, 2010 at 10:48 AM, matplotlib-users-request@lists.sourceforge.net
wrote:

Send
Matplotlib-users mailing list submissions to

   matplotlib-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit

   [https://lists.sourceforge.net/lists/listinfo/matplotlib-users](https://lists.sourceforge.net/lists/listinfo/matplotlib-users)

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

   matplotlib-users-request@lists.sourceforge.net

You can reach the person managing the list at

   matplotlib-users-owner@lists.sourceforge.net

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

To: matplotlib-users@lists.sourceforge.net

Message-ID:

   <AANLkTimGOkWXNsavXWyM9YcVKvhmfpBKy4Fxv10_yQXG@...288...>

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

pylab…title(“Teste”)

pylab.savefig(“imagem.png”)

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

3000,3050,3100,…,3400

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…

Wal?ria

-------------- 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 SF.net email is sponsored by Sprint

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

Visit sprint.com/firsthttp://p.sf.net/sfu/sprint-com-first



Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

[https://lists.sourceforge.net/lists/listinfo/matplotlib-users](https://lists.sourceforge.net/lists/listinfo/matplotlib-users)

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




This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first – _______________________________________________
Matplotlib-users mailing list
http://p.sf.net/sfu/sprint-com-first


Matplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users