New answers tagged

6

Update: As an alternative and more flexible approach, we can post-process ContourPlot output to inject contour labels. ClearAll[addLabels] addLabels[colors_, labels_: Automatic, threshold_: 1/3][g_Graphics] := Module[{diag = ArcLength@Line[Transpose @ PlotRange @ g], assoc = AssociationThread[colors, labels /. Automatic -> MapIndexed[...


1

names = CountryData[]; data = CountryData[#, {"Population", {1920, 2010}}] & /@ names; cleaned = DeleteMissing[data /. {} -> Nothing]; sum = TimeSeriesThread[Total, cleaned]; DateListLogPlot[sum, FrameLabel -> {{"one", "two"}, {"three", "four"}}, LabelStyle -> Directive[Red, Bold, 16], ...


0

The syntax in use in that other question is: {#, ScientificForm@#} & /@ Range[min_value, max_value, increment] where min_value is the lower bound of the axis, max_value is the upper bound, and increment is the spacing between successive labeled tick marks. In your case, a setting of min_value of -40000, max_value of 0, and increment of 10000 gives ...


3

Update Added ResourceFunction SymmetricSort to Wolfram Function Repository. With m, order, and neworder from below then ResourceFunction["SymmetricSort"][m, order, neworder] OP When you reorder the correlation matrix you must preserve the diagonal and the relationship between the variables. For correlation matrix m m = Transpose@MapIndexed[ {v,...


3

Try this. To be precise, let us assume that the following matr={{7, 10, -2, 3, -4}, {-8, -8, -9, 3, 3}, {5, -1, 7, 9, -5}, {4, -9, 0, -7, -10}, {10, 5, -9, 8, -9}}; is your matrix to be rearranged. Here are your lists of old and new headings: lst = {a, b, c, d, e}; lst2 = {c, a, e, b, d}; Let us determine positions of the elements of lst2 in the lst: ...


Top 50 recent answers are included