5

Can someone explain the following behavior exhibited by a combination of SetDelayed, Dynamic and Histogram.

Take

example := RandomReal[{0, 100}, 100]

and compare

Dynamic@Histogram[example]

static histogram

with

Dynamic@Histogram[{example}]

moving histogram


Use case:

I would have expected Histogram to behave similar to e.g. ListPlot i.e. compare

Dynamic@ListPlot[{example, example}]

ListPlot

and

Dynamic@Histogram[{example, example}]

enter image description here


Since Kuba noted in a comment that he can reproduce this behavior in version 10.4 but not 11: I am using Mathematica 11.0.0.0 on OS X 10.11.6

Sascha
  • 8,459
  • 2
  • 32
  • 66

0 Answers0