Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8969 > unrolled thread

Re: Reset Button to Clear ListPlot

Started byAdriano Pascoletti <adriano.pascoletti@uniud.it>
First post2012-03-11 11:33 +0000
Last post2012-03-11 11:33 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Reset Button to Clear ListPlot Adriano Pascoletti <adriano.pascoletti@uniud.it> - 2012-03-11 11:33 +0000

#8969 — Re: Reset Button to Clear ListPlot

FromAdriano Pascoletti <adriano.pascoletti@uniud.it>
Date2012-03-11 11:33 +0000
SubjectRe: Reset Button to Clear ListPlot
Message-ID<jji2ib$kn8$1@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,
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web