Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: ListPlot Problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg92906] Re: [mg92901] ListPlot Problem
  • From: huihua <huihua at wolfram.com>
  • Date: Sat, 18 Oct 2008 06:24:08 -0400 (EDT)
  • References: <ffd067b30810140918h3f819bbaq260e7edcbc2c8ad1@mail.gmail.com> <200810170925.FAA15005@smc.vnet.net>

Youness Eaidgah wrote:
> Dear Masters,
> I wrote the following simple program to make a ListPlot, but it dose not
> work:
>
> In[76]:= Clear[x, a, b, c, d]
>
> In[65]:= a =
>  N[Dynamic[
>    Simplify[(8000*35 - 4000*(65 - x))*0.11 + (10000*35 -
>         2000*(65 - x))*0.11 + (12000*100 -
>         12000*65)*0.28 + (12000*100 - 12000*65)*0.22 + (12000*100 -
>         12000*65)*0.18 + (12000*100 - 12000*65)*0.1]], 10]
> In[66]:= b =
>   Dynamic[Simplify[(8000*100 + 6000*x - 14000*65)*0.11 + (10000*100 +
>         4000*x - 14000*65)*0.11 + (12000*100 + 2000*x -
>         14000*65)*0.28 + (14000*100 - 14000*65)*0.22 + (14000*100 -
>         14000*65)*0.18 + (14000*100 - 14000*65)*0.1]];
>
> In[67]:= c =
>   Dynamic[Simplify[(8000*100 + 8000*x - 16000*65)*0.11 + (10000*100 +
>         6000*x - 16000*65)*0.11 + (12000*100 + 4000*x -
>         16000*65)*0.28 + (14000*100 + 2000*x -
>         16000*65)*0.22 + (16000*100 - 16000*65)*0.18 + (16000*100 -
>         16000*65)*0.1]];
>
> In[68]:= d = Dynamic[Simplify[
>     (8000*100 + 10000*x - 18000*65)*0.11 + (10000*100 + 8000*x -
>         18000*65)*0.11 + (12000*100 + 6000*x -
>         18000*65)*0.28 + (14000*100 + 4000*x -
>         18000*65)*0.22 + (16000*100 + 2000*x -
>         18000*65)*0.18 + (18000*100 - 18000*65)*0.1]];
>
> In[69]:= f = {{12000, a}, {14000, b}, {16000, c}, {18000, d}}
>
> x= 10;
>
> In[77]:= ListPlot[{f}]
>
> and surprisingly i get no plot and also no error message, just a chart
> without any point on it!! I have worked on it for a while, reading the list
> plot options, but I am not able to get out of the mess. I would appreciate
> if you could help me out.
> Bests,
> Jonas
>
>
>   
The Dynamic causes the problem. If you take out Dynamic from a,b,c,d, it 
will work.

Huihua


  • Prev by Date: Re: Line Spacing and Page Layout
  • Next by Date: Re: Dynamic problem (possibly simple)
  • Previous by thread: ListPlot Problem
  • Next by thread: Re: ListPlot Problem