데이터의 자동 분류
ListPlot과 관련 함수는 LabelingFunction의 지원을 시작하였습니다.
전체 Wolfram 언어 입력 표시하기
적절한 메타 데이터가 존재하는 경우 LabelingFunction은 자동으로 이것을 라벨로 사용합니다.
In[2]:=
![Click for copyable input](assets.ko/auto-labeling-data/In_30.png)
months = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug",
"Sep", "Oct", "Nov", "Dec"};
In[3]:=
![Click for copyable input](assets.ko/auto-labeling-data/In_31.png)
DateListPlot[data -> months, {2000, 1},
PlotMarkers -> {Automatic, 13}, ImageSize -> 550,
Frame -> {{True, False}, {False, False}},
PlotTheme -> {"LargeLabels", "Business"}]
Out[3]=
![](assets.ko/auto-labeling-data/O_28.png)
LabelingFunction에서 Callout을 사용합니다.
In[4]:=
![Click for copyable input](assets.ko/auto-labeling-data/In_32.png)
DateListPlot[data -> months, {2000, 1},
LabelingFunction -> Callout[ Automatic, Automatic],
PlotMarkers -> {Automatic, 13}, ImageSize -> 550,
Frame -> {{True, False}, {False, False}},
PlotTheme -> {"LargeLabels", "Business"}]
Out[4]=
![](assets.ko/auto-labeling-data/O_29.png)
데이터의 중심에 라벨을 위치시킵니다.
In[5]:=
![Click for copyable input](assets.ko/auto-labeling-data/In_33.png)
opts = {PlotTheme -> {"LargeLabels", "Marketing"}, ImageSize -> 550,
Frame -> {{True, False}, {False, False}},
PlotRangePadding -> Scaled[.05],
Frame -> {{True, False}, {False, False}}};
In[6]:=
![Click for copyable input](assets.ko/auto-labeling-data/In_34.png)
SeedRandom[4]; DateListStepPlot[
RandomReal[{0, 0.3}, 12] -> months, {2000, 1},
LabelingFunction -> Center, opts]
Out[6]=
![](assets.ko/auto-labeling-data/O_30.png)