Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8969
| From | Adriano Pascoletti <adriano.pascoletti@uniud.it> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Reset Button to Clear ListPlot |
| Date | 2012-03-11 11:33 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jji2ib$kn8$1@smc.vnet.net> (permalink) |
| References | <201203110906.EAA19356@smc.vnet.net> |
Button["Reset", a = {0}]?
Adriano Pascoletti
2012/3/11 Scott Colwell <scolwell@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,
>
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Reset Button to Clear ListPlot Adriano Pascoletti <adriano.pascoletti@uniud.it> - 2012-03-11 11:33 +0000
csiph-web