After I finished writing the following code snippet
With[{values = {-3, 0.3, -0.03, -0.003, 0.003, 0.03, 0.3, 3}},
Grid[
Partition[
Table[
Block[{b = value},
Plot[
b t,
{t, 0, 100},
PlotLabel -> Row[{HoldForm[b] -> b}]
]
], {value, values}], 3, 3, {1, 1}, {}]]]
I realized that b in HoldForm (at PlotLabel -> Row[{HoldForm[b] -> b}]) was highlighted in red and hovering the cursor on top of it produces a tool tip with the text: "b in HoldForm occurs where it is probably not going to be evaluated before going out of scope".
A the end of the tool tiop, there is an info button that, when pressed, opens up the documentation of HoldForm.
Can somebody, please, explain to me why am I getting this behavior?
b, then usedbin a context where it won't be evaluated. Minimal example (which you should construct yourself next time):Block[{b = 1}, HoldForm[b]]. This is a warning, not an error. It is up to you to decide whether it is relevant (here it's clearly not). – Szabolcs Jan 30 '18 at 09:25bname = HoldForm[b];before theBlock, then doPlotLabel -> Row[{bname -> b}]– george2079 Jan 30 '18 at 17:16