If I create a Dataset
:
dataSet = Dataset[
AssociationThread[{"a", "b", "c", "d", "e"} -> #] & /@ RandomReal[{-1, 1}, {1000, 5}]
];
It should be easy to use a plotting function on it
dataSet[ListContourPlot, {"a", "e", "c"}]
but all I get is the list of associations back.
Why does Dataset
not plot my data query?
I don't understand why this happens, since if I replace ListContourPlot
with, say ListPointPlot3D
(these functions work on lists of triplets), it works fine. ListDensityPlot
has the same problem. This doesn't seem to have anything to do with extreme ranges in my dataset, and I can't see anything wrong with the dataset itself; i.e., the following works fine:
With[{
t = {
Normal @ dataSet[All, "a"],
Normal @ dataSet[All, "e"],
Normal @ dataSet[All, "c"]
}
},
ListContourPlot[Transpose[t]]]