MathGroup Archive 2012

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

Search the Archive

Re: Reset Button to Clear ListPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125394] Re: Reset Button to Clear ListPlot
  • From: Adriano Pascoletti <adriano.pascoletti at uniud.it>
  • Date: Mon, 12 Mar 2012 04:05:24 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201203110906.EAA19356@smc.vnet.net>

Button["Reset", a = {0}]?


Adriano Pascoletti



2012/3/11 Scott Colwell <scolwell at uoguelph.ca>

> Does anyone know how to create a "Reset" button that will clear a ListPlot
> (ie: clear off the data that is plotted) but leave the Plot axes and ticks
> there so that it can be started again.
>
> Here's what I have. Basically I need to be able to clear the graph.
>
> Manipulate[
>  ListPlot[a, Joined -> True],
>  Button["Add Random", AppendTo[a, RandomInteger[{1, 6}]]], {{a, {0}},
>  ControlType -> None},
>  Button["Reset", Clear[a]]]
>
> Thank you,
>
>


  • Prev by Date: Re: Reset Button to Clear ListPlot
  • Next by Date: Non linear model fitting with an integral model
  • Previous by thread: Re: Reset Button to Clear ListPlot
  • Next by thread: Re: Reset Button to Clear ListPlot