New answers tagged

1

Perhaps this is what you are looking for list = Range[10]; fn[arg1_, arg2_, arg3_] := Module[{}, Return["do something w element " <> ToString[arg1] <> " given " <> StringRiffle[{arg2, arg3}]]]; MapAt[fn[#, "a2", "a3"] &, list, RandomInteger[{1, 10}]] An example with a native ...


2

Clear["Global`*"]; funcs = {(1 - x)/2, -2 - 3 x}; pt = {x, funcs[[1]]} /. Solve[ Equal @@ funcs, x, Reals][[1]] (* {-1, 1} *) Adding options to the Callout Plot[Evaluate[Callout[#, #, {Scaled[0.8], Above}, Background -> LightGray] & /@ funcs], {x, -2, 1}, Epilog -> {Red, AbsolutePointSize[6], Tooltip[Point[pt], pt]}] ...


1

You have to do something like Text[Style["some text", FontWeight -> weight]] See this example from the documentation of Text: Graphics[{Text[Style["ABCDEF", Large, Bold, Red], {0, 0}, Automatic, {2, 1}], Circle[]}] which produces The documentation of Bold says: Bold is effectively equivalent to FontWeight->Bold Edit This ...


1

This seems to be fixed in 12.1.1:


8

Update 2: We can use the (undocumented) option "LegendItem" for LineLegend as follows: First create the desired legend glyphs: legenditems = MapThread[ListLinePlot[Table[{x, Around[1, 0.5]}, {x, 0, 1, 0.1}], IntervalMarkers -> "Bands", PlotStyle -> #, IntervalMarkersStyle -> #2, AspectRatio -> 1, Axes -> False] &, {ColorData[...


Top 50 recent answers are included