Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

By default Histogram generates Graphics expression with embedded Dynamic constructs as can be seen by looking on its InputForm. Is it possible to switch off generation of any Dynamic constructs and get non-interactive Graphics from Histogram?

P.S. There are two reasons to turn off interactivity:

1) Interactivity is not needed when preparing graphics for Export.

2) Unnecessary Dynamic elements complicate generated Graphics expression and make difficult to modify it.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

With $PerformanceGoal set to "Quality" by default, Histogram will generate tooltips for all the bars, which are dynamic objects. You can disable this with the option PerformanceGoal -> "Speed".

With[{data = RandomVariate[NormalDistribution[], 1000]},
    FreeQ[InputForm@Histogram[data, PerformanceGoal -> #], Tooltip | DynamicBox]
]& /@ {"Speed", "Quality"}

(* {True, False} *)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.