Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Using group in scatter plots correctly?

$
0
0

Hello!

I am trying to make a scatterplot where there exist two groups, one called “0” and one called “1”. The group values is stored in a vector “z”. Over time the points in group “0”, come to group “1”, something like this:

image

image

But in the final time step, when all have come to group “1”, the color just becomes “blue” - I want it to stay orange or some other color I set:

image

How do I achieve this, using Plots? My current command is:

p = scatter((data[1,:],data[2,:]),
            group = z,
            markersize = 3.5,
            markerstrokestyle = :dot,
            aspect_ratio=:equal
            );

Kind regards

6 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Latest Images

Trending Articles



Latest Images