MathGroup Archive 2011

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

Search the Archive

how to plot new data points to pre-existing figure

  • To: mathgroup at smc.vnet.net
  • Subject: [mg122867] how to plot new data points to pre-existing figure
  • From: tle <truongvle at yahoo.com>
  • Date: Sun, 13 Nov 2011 04:43:35 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

Hi, 

Could someone please tell me how to delete the old figure and create a new one in a for loop.

thanks,

testPlot[k_] := Module[{i, n, m, z},
  z[x_, m_] = m*x;
  For[i = 1, i < k,
   Print[{i}];
   plot1 = 
    Plot[z[x, i], {x, 0, 10}, PlotRange -> {{0, 10}, {0, 20}}];
   Print[plot1];
    i++];
  ]



  • Prev by Date: 2D Plot for a face of a 3D plot box?
  • Next by Date: Re: dynamic nested loops
  • Previous by thread: Re: 2D Plot for a face of a 3D plot box?
  • Next by thread: Re: how to plot new data points to pre-existing figure