Bug introduced in 10.4.0, and fixed in 11.0.0
PlotLabels
is new in 10.4.0.
The regulars here discuss approaches to numerically unstable systems of higher-order PDEs, and I cannot even paint by numbers … (sigh)
A Plot[] of simple curves with Filling
and Placed[]
labels fails. The following example works, producing a more-or-less pretty picture:
Plot[{Sin[t], Sin[2 t]}, {t, 0, 4 \[Pi]},
PlotLabels -> {Placed[Style["u(t)", Blue], Scaled@0.18]
(*,Placed[Style["i(t) [A]",Red],Scaled@0.18]*)
}
, Filling -> {1 -> Axis}]
If I uncomment the second "Placed…", I get
Extract::partw: Part 2 of {{{2.5645654315*10^-7,2.5645654315*10^-7},{0.00385433090651,0.00385432136328},{0.00770840535647,0.00770832901842},<<46>>,{0.642814839394,0.599450843234},<<1331>>}} does not exist. >>
Extract::partw: Part 2 of {{{2.5645654315*10^-7,2.5645654315*10^-7},{0.00385433090651,0.00385432136328},{0.00770840535647,0.00770832901842},<<46>>,{0.642814839394,0.599450843234},<<1331>>}} does not exist. >>
Extract::partw: Part 2 of {{{2.5645654315*10^-7,2.5645654315*10^-7},{0.00385433090651,0.00385432136328},{0.00770840535647,0.00770832901842},<<46>>,{0.642814839394,0.599450843234},<<1331>>}} does not exist. >>
General::stop: Further output of Extract::partw will be suppressed during this calculation. >>
Labeled::labpos: {Scaled[0.18]} is not a valid position for the placement of labels. >>
The resulting plot is, of course, not labelled.
What am I doing wrong? (And should I have uploaded images for the working and failing case?)