A question about my Plots.scatter

using CSV,DataFrames,Statistics,StatsBase,TimeSeries,Plots
#Clustering,Gadfly,Statistics,DataFrames,Plots,StatsBase,FFTW,MultivariateStats,BetaML
data=CSV.read("D:\\mycode\\code\\数据.csv")

MD=data[96412:96775,:]
load=convert(Array,MD[:,5])
solar=convert(Array,MD[:,8])
wind=convert(Array,MD[:,9])
price=convert(Array,MD[:,7])
Dload=reshape(load,1,:)
Dsolar=reshape(solar,1,:)
Dwind=reshape(wind,1,:)
Dprice=reshape(price,1,:)
Dlswp=[Dload;Dsolar;Dwind;Dprice]
Dlswp=disallowmissing(Dlswp)
LSWP=DataFrame()
LSWP[:cloL]=Dlswp[1,:]
LSWP[:cloS]=Dlswp[2,:]
LSWP[:cloW]=Dlswp[3,:]
LSWP[:cloP]=Dlswp[4,:]

s=reshape(LSWP[:cloP],:,4)

Plots.scatter(LSWP[:cloL],s,markercolor=[:red,:green,:blue,:orange])

The code doesn’t report an error but it doesn’t draw my picture,why?


nothing in my Plots window,why?thanks!!!

Are your x and y-data of the same length?

i have found the problem ,thanks!