When labeling FrameTicks
with my own labels, I stumbled upon a very curious behavior. If I label just one tick, it renders perfectly:
Plot[x, {x, 0, 1}, Frame -> {True, True, False, False},
FrameTicks -> {{{0, "Low"}, 1}, Automatic}]
But if I want to specify both label names, it fails:
Plot[x, {x, 0, 1}, Frame -> {True, True, False, False},
FrameTicks -> {{{0, "Low"}, {1, "High"}}, Automatic}]
"A tick position in the value of the Ticks option should be a number."
However, if I specify 3 or more labels, it all goes back to normal.
Plot[x, {x, 0, 1}, Frame -> {True, True, False, False},
FrameTicks -> {{{0, "Low"}, {0.5, "Medium"}, {1, "High"}}, Automatic}]
I can fix it of course by doing:
Plot[x, {x, 0, 1}, Frame -> {True, True, False, False},
FrameTicks -> {{{0, "Low"}, {0.5, ""}, {1, "High"}}, Automatic}]
But this is not an elegant solution. Is that a bug or there is a reason for that?