Log scatter recipe
इस अभ्यास में, आप एक series recipe बनाएँगे जो logarithmic y-axis scale के साथ scatter plots जनरेट करती है. इसके अलावा, आपकी recipe अतिरिक्त attributes से plot को customize भी करेगी.
Plots पैकेज लोड है, और streaming DataFrame उपलब्ध है.
यह अभ्यास पाठ्यक्रम का हिस्सा है
Julia के साथ डेटा विज़ुअलाइज़ेशन परिचय
अभ्यास निर्देश
:scatterटाइप कीlogscatterनाम की series recipe बनाएँ.- plotting फंक्शन
logscatterपरिभाषित करें. - recipe को
AgeऔरHours_per_dayकॉलम पर, उसी क्रम में, लागू करें.
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
# Series recipe
____ function f(::Type{Val{:____}}, x, y, z)
seriestype := :____
framestyle := :box
label := false
yscale := :log10
markershape := :star4
markercolor := :purple3
markersize := 5
markeralpha := 0.5
end
# Define plotting function
____ ____
# Apply recipe
____(streaming.____, streaming.____)