# Scatterplot offline using Python

**URL:** <https://community.plotly.com/t/scatterplot-offline-using-python/1438>\
**Category:** Plotly Fundamentals\
**Created:** [July 1, 2016, 12:55pm UTC](https://community.plotly.com/t/scatterplot-offline-using-python/1438 "2016-07-01T12:55:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcniebel](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@marcniebel](https://community.plotly.com/u/marcniebel)\
**Post date:** [July 1, 2016, 12:55pm UTC](https://community.plotly.com/t/scatterplot-offline-using-python/1438/1 "2016-07-01T12:55:30Z")

</div>

My data is split into four variables in a tab delimited file with the headings being: Accession number, year, dist and cluster number.  
My code currently reads:  
plotly.offline.plot({“data”:[Scatter(x=years, y=dists, mode=“markers”, marker=dict(color=clusters,   
colorscale=‘Rainbow’, size=8),text=accs)],“layout”:Layout(title=“Dengue Virus”, hovermode=“closest”,   
xaxis=dict(title=“Time(years)”), yaxis=dict(title=“root-to-tip divergence”))})

I want to color each cluster. However there are 27 clusters and colors are being recycled. Therefore I thought of making my own list of rgb colors. However I am not sure of the syntax.  
Tried  
colorscale=[[‘rgb(255,0,0)’]…]no change in generated scatterplot  
cList=[‘rgb(255,0,0)’,…] and placed this instead of ‘Rainbow’. No change either.

Any help would be much appreciated.
