I tried to reproduce your attached plots using the functions you gave.
While I was able to reproduce your first graph (values from -1.08e-20 to
-1.386e-20) I could not reproduce your second graph.  My y2 has values from
1.397e27 to 1.7936e27.  Your second graph shows values ranging from 1.7e-27
to 2.2e-27.

As for your third graph, I am not sure where that came from, but the red
line has values around 1e50 which is nowhere near the values of your other
two graphs.

y1 seems to be the only one that is correct here.  Could it be that the y2
function was typed incorrectly somewhere?  I noticed some of the notation is
awkward, for example *"**(1e0+4)*", shouldn't that simpilfy to 5?

I hope this helps,
Ben Root


On Tue, Jun 8, 2010 at 10:19 AM, Waléria Antunes David <
waleriantu...@gmail.com> wrote:

> Hello!!!
>
> My name is Waleria. I work at INPE in Sao Jose dos Campos, Brazil. And I'd
> like to make a question. I'm in trouble to generate a two functions graph.
>
> I have a problem to generate a graph of the two functions. I have this
> functions, is bellow:
>
> *y1 = -108*(x**2)/(3e14**2)*
>
> *y2 = 1*((1.38e-23*(1e0+4)/1e-6)*((x**2)/4*(1e4**2)*(3e14**2))))*
>
> However, i need to plot a graph these two functions, the first function is 
> decrescent an the second is crescent. I made some tests that cite below:
>
>
> 1 - I plotted only function at a time and the result was, the result of the 
> first test is attached;
> 2- Then, I see the example below: 
> http://matplotlib.sourceforge.net/examples/pylab_examples/set_and_get.html
>
>
> So, I made a change in the example over, I changed the functions in the 
> example and added my functions as falows below:
>
> *from pylab import *
>
> x = arange(3000,3400)
>
> y1 = -108*(x**2)/(3e14**2)
>
>
> y2 = 1*((1.38e-23*(1e0+4)/1e-6)*((x**2)/4*(1e4**2)*(3e14**2)))
>
> lines = plot(x, y1, x, y2)*
>
> However, the result in my opinion is incorrect, because the first function is 
> decrescent and second is crescent, see the result of second test, is attached.
>
>
> As can see in the image, first appers a continuous line and to ber a constant 
> function should be of the type y=x for the example, the second function is 
> crescent, ou seja, the first function is incorrect, i gave a print in the
>
>
> functions y1 and y2, the output values are correct, for function y1 the 
> values are always decrescent and function(negative values) and for y2 the 
> values are crescent ( positive values).
>
> As you
>
>
> can see in the image first appears a continuous line, and to be a
> constant function should be of the type y = x for example, the second
> function is increasing, ie, the first function is being displayed
> incorrectly.
>
>
> Already relize tests using GNUPLOT and the results is equal to the tests over.
>
> I would like to thank your support.
> Best regards
>
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to