-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colouring indivdual scatter points #55
Comments
You can access the scatter plots directly as Violin.ScatterPlot and Violin.ScatterPlot2. Feel free to modify them in any way you like! |
Hello, Yes I can do that if I want to change all the scatter point colours to an other colour completely using:
However, if I want to make each scatter point a different colour like you can with the normal scatter plot function by calling:
I get no change in colour. Any help would be greatly appreciated! Michael |
No idea, sorry. At this point you're dealing with a plain-old Matlab scatter plot. If changing CData doesn't work, perhaps open a support ticket at Mathworks (I'm not kidding, they are very helpful there). Violinplot really doesn't do anything fancy with these plots, so there's probably no Violin-specific magic going on. |
Hello, I am not really sure that it is a scatterplot issue. I have done a little more digging and I think it is caused by the use of violin as a class. Using violin plot normally, ie If I then try and modify the individual colours as I would in a normal scatter plot by However, if I set a debug stop in But once the At this point I am just getting the point X/Y coordinates by calling Anyway, mostly detailing this for anyone who wants to try and do what I am trying to do as well. Michael |
If that's true, please take it up with the Mathworks tech support. CData should definitely change the scatter plot's colors. (I'm not saying this as a flippant remark. Their tech support is often very responsive and helpful in issues like these.) |
Hello,
First of all this is a beautiful function and the plots look gorgeous.
So I am plotting three violin plots on the same axis. However, I would like to specify the individual colours of some of the scatter points.
With
scatter
you can specify an m x 3 rgb array for each point. Is there any way to do this function?Best,
Michael
The text was updated successfully, but these errors were encountered: