# A question about my Plots.scatter

**URL:** https://discourse.julialang.org/t/a-question-about-my-plots-scatter/42594
**Category:** General Usage
**Tags:** question
**Created:** [July 6, 2020, 7:40am UTC](https://discourse.julialang.org/t/a-question-about-my-plots-scatter/42594 "2020-07-06T07:40:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)
#### Post date: [July 6, 2020, 7:40am UTC](https://discourse.julialang.org/t/a-question-about-my-plots-scatter/42594/1 "2020-07-06T07:40:23Z")

</div>

```julia
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?

 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/e/8e1132a47866e0d1fe2fce8d8fad569b0a5a7011.png)  
nothing in my Plots window,why?thanks!!!

---

<div class="post-metadata">

### Author: ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)
#### Post date: [July 6, 2020, 8:56am UTC](https://discourse.julialang.org/t/a-question-about-my-plots-scatter/42594/2 "2020-07-06T08:56:34Z")

</div>

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

---

<div class="post-metadata">

### Author: ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)
#### Post date: [July 6, 2020, 10:04am UTC](https://discourse.julialang.org/t/a-question-about-my-plots-scatter/42594/3 "2020-07-06T10:04:33Z")

</div>

i have found the problem ,thanks!
