danielparthier / BehaviourAnalysis

Behavioural Analysis
GNU General Public License v3.0
1 stars 0 forks source link

Plotting Colour Schemes #3

Closed danielparthier closed 4 years ago

danielparthier commented 4 years ago

I am currently finishing up functions for the package and am introducing plotting functions. The ones I have now are trying to be colourblind friendly and at the same time should allow for better readability especially when it comes to "object approach angles". It would be nice to get your feedback and maybe other ideas to implement. @hung-lo @johntukker @natglo

MovementPlotDark MovementPlotLight

danielparthier commented 4 years ago

The updates are in the "package" branch

hung-lo commented 4 years ago

Hi Daniel, so viridis is a good color map in general, I also like it. For the diverging color map, the upper one is extremely difficult for me to distinguish. So I'd prefer the one down below. If there are other options, I think the 'bwr', 'seismic', and 'PuOr' are all good for me. image

Thank you very much for being inclusive :)

Hung

hung-lo commented 4 years ago

Btw have you thought about adding titles to subplots? I also find that much easier to interpret. Especially for the angles to object 1 and 2, I assume B is OBj_1 and C is Obj_2 but it can be clearer :)

danielparthier commented 4 years ago

I can add titles but didn't think of a final figure thing here. But you are right about it an I will change it. ;) The problem with these is that at the midpoint they go to white which is problematic on a white surface and a path. In principle I can construct any scheme you think makes sense. I would just need the HEX code for some parts (e.g. start/end/midpoint or even 75% etc.). My problem really is that the 0° should be visible as a path so I was hoping the yellowish ones are fine. I looked at some colour scheme generator (different conditions) online to find something which could work but apparently I was wrong!

danielparthier commented 4 years ago

Btw have you thought about adding titles to subplots? I also find that much easier to interpret. Especially for the angles to object 1 and 2, I assume B is OBj_1 and C is Obj_2 but it can be clearer :)

I just thought about it. Maybe it would make sense to be able to highlight the object (different colour for circle) or is a title always the better option. I could add an option in the function which automatically highlights this.

hung-lo commented 4 years ago

You're completely right about the midpoint disappearing issue here, I'll think about which color map will make more sense here...

And for adding titles, I think highlighting the objects itself is a great idea (like full color for the focussed one and alpha=0.2 for the other one or something like that). If it's clear enough, I don't think the titles will be that necessary. But of course that's only my opinion, let's wait a bit and see how others think about this :)

Thanks a lot!

danielparthier commented 4 years ago

The function AnglePlot() was updated and now takes ObjectHighlight with "none", "alpha", "stroke", and "colour" as input argument. AnglePlotObjectIdentification

danielparthier commented 4 years ago

Now it's also possible to parse a colour string to the function to take the colour of your choosing. colourOverview