Reset Button to Clear ListPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg125385] Reset Button to Clear ListPlot
- From: Scott Colwell <scolwell at uoguelph.ca>
- Date: Sun, 11 Mar 2012 04:06:45 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
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,
- Follow-Ups:
- Re: Reset Button to Clear ListPlot
- From: Adriano Pascoletti <adriano.pascoletti@uniud.it>
- Re: Reset Button to Clear ListPlot
- From: Adriano Pascoletti <adriano.pascoletti@uniud.it>
- Re: Reset Button to Clear ListPlot