Skip to content
Plotly templates

t-SNE / UMAP Embedding

2-D embedding of high-dimensional data — clusters coloured by class.

Template previewPlotly
Rendering…

Make it your own.

{
  "data":[
    {"type":"scatter","mode":"markers","name":"Cluster A",
      "x":[-2.1,-1.8,-2.0,-1.5,-1.9,-2.3,-1.7,-2.2],
      "y":[1.8,1.5,2.1,1.7,1.6,1.9,1.4,2.0],
      "marker":{"color":"#1f47f5","size":9,"line":{"color":"white","width":1}}},
    {"type":"scatter","mode":"markers","name":"Cluster B",
      "x":[2.0,1.7,2.3,1.9,2.1,1.6,2.4,1.8,2.0,2.2],
      "y":[-1.5,-1.8,-1.3,-1.6,-1.7,-2.1,-1.4,-1.9,-1.8,-1.5],
      "marker":{"color":"#dc2626","size":9,"line":{"color":"white","width":1}}},
    {"type":"scatter","mode":"markers","name":"Cluster C",
      "x":[0.1,-0.2,0.4,-0.1,0.3,0.0,-0.3,0.5],
      "y":[-0.1,0.3,0.1,-0.4,0.2,0.5,-0.2,0.0],
      "marker":{"color":"#16a34a","size":9,"line":{"color":"white","width":1}}},
    {"type":"scatter","mode":"markers","name":"Cluster D",
      "x":[-1.4,-1.1,-0.9,-1.3],
      "y":[-2.0,-2.3,-2.5,-1.9],
      "marker":{"color":"#eab308","size":9,"line":{"color":"white","width":1}}}
  ],
  "layout":{"title":"t-SNE embedding","xaxis":{"title":"t-SNE 1"},"yaxis":{"title":"t-SNE 2"}}
}