Wolfram Language

Visualisation: Étiquettes, Échelles, Exclusions

Données de pluies de météores

Combinez LabelingFunction et Callout pour étiqueter seulement les données remplissant certaines conditions.

Montrer l'entrée complète de Wolfram Language
In[1]:=
Click for copyable input
styles = {Joined -> False, Filling -> Bottom, FillingStyle -> Thick, PlotTheme -> "SingleAxis", PlotRange -> All, PlotStyle -> Yellow, LabelStyle -> White, Background -> Black, ImageSize -> 550};
In[2]:=
Click for copyable input
meteorData = MeteorShowerData[All, {"PeakDate", "PeakZHR", "Name"}]; meteorData = DeleteMissing[meteorData, 1, 1]; meteorData = meteorData[[All, ;; 2]] -> meteorData[[All, -1]];
In[3]:=
Click for copyable input
DateListPlot[meteorData, styles, FrameLabel -> {"Peak Date", "Peak Frequency"}, PlotLabel -> "Peak Dates and Frequencies of Meteor Showers, 2016", LabelingFunction -> (If[Last@# > 50, Callout[Last@Flatten[#3], Above], None] &)]
Out[3]=

Exemples connexes

de en es ja ko pt-br ru zh