Wolfram言語

可視化:ラベル,スケール,除外

流星群のデータ

LabelingFunctionCalloutを組み合せ.一定の条件を満たすデータだけにラベルを付ける.

完全なWolfram言語入力を表示する
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]=

関連する例

de en es fr ko pt-br ru zh