Default circle scatter appearance #11278
Replies: 11 comments
-
I don't see any problem with it by itself. |
Beta Was this translation helpful? Give feedback.
-
@p-himik just to make sure I am interpreting correclty: you don't see a problem with increasing the default size, correct?
RIght I think this is the CodeQL functionality from their acquisition of Semmle. I have never tried to use it either but agree it might potentially be a valuable tool to leverage. |
Beta Was this translation helpful? Give feedback.
-
Vice versa. :) I don't see a problem with the sizes being the smallest. Not much smaller than Plotly or Altair. |
Beta Was this translation helpful? Give feedback.
-
Ah, good I asked. Altair uses a different (attractive) fill style. And Plotly applies a better default palette. I guess I should clarify that my question is not strictly about the size being the smallest, per se. It's more that IMO I think our default looks the worst. I guess this a meta question: what are ways we can make output look better by default So then another idea: Is there any way we can make better colormapping with a default palette even simpler? Looking at plotly's
We already check to see if the value is a column name, we could go a step further and apply a default colormap if the first value is not actually a valid color value. |
Beta Was this translation helpful? Give feedback.
-
I'm also willing to bet there is academic research that could inform this question but I am not sure where to look for it. |
Beta Was this translation helpful? Give feedback.
-
I'd consider the default size to be important not just for how it looks, but for how usable it is. When coloring by category as in this plot, it can be difficult to make out the colors of small dots. E.g. if the blue and green dots overlapped more as in this example, it would be very hard to see which is which;colors show up much more clearly with larger dots. As for light fill or light border, I vote in favor of a light border, because it helps make overlap more visible, alerting users to overplotting issues. Light fill has some advantages for how it behaves when overplotting, but that seems too opinionated a change to make to the defaults at this stage in Bokeh's history. In both cases I'd think any changes to the defaults should be for 3.0 to avoid breaking existing plot appearance for users of bokeh 2.x. |
Beta Was this translation helpful? Give feedback.
-
Ah, OK. In this case, I agree that it's worth pursuing. I don't know of any ways other than to either go through a multitude of plots and come up with something or to vote on one style among many.
I'm definitely against it. |
Beta Was this translation helpful? Give feedback.
-
Tangentially this gives me an idea related to major versioning: we won't guarantee that minor releases won't break code but we could guarantee that the same code won't look different. I will raise that in the other issue, though, lets not get off track here.
This is also explicitly one of my concerns with how our output looks, relative to the others. If we had automatic and better default colormapping, we could pick colors that are highly distinguishable by default. Then perhaps the small size woud affect usability less. But we don't have that. @p-himik what is a compromise that makes colormapping still explicit, but also much easier and simpler than it is currently? Currently it requires something like
and I can state unreservedly that that is alot more work than many users want to have to do just to get a nice colormapping. Not even just the actual code, it's a bunch of "stuff" that they have to navigate unfamiliar docs to try to learn before even getting there. Simply specifying some palette as a default would go a little way:
But you still have to provide the unique factors. We could potentially defer that (if asked to) e.g
where |
Beta Was this translation helpful? Give feedback.
-
I think it's good! In this case, I think reusing
Glyph functions do a lot of stuff.
|
Beta Was this translation helpful? Give feedback.
-
This prevents any hopes for auto-completion and won't provide a focused docstring. In fact, we would like to proceed the other direction and reduce usage of |
Beta Was this translation helpful? Give feedback.
-
I agree that it would be good to move away from dicts as they are not discoverable. Rather than @p-himik re:
This is definitely an option. The reason I suggested Summarizing the current discussion as I understand it so far:
|
Beta Was this translation helpful? Give feedback.
-
Looking at this comparison:
https://share.streamlit.io/discdiver/data-viz-streamlit/main/app.py
We have the smallest default circle marker by far.
Should we bump the default size 10-15%? Should we consider adopting some of the different default visual highlights ala altair (light fill) or seaborn (light border)?
cc @bokeh/dev
Beta Was this translation helpful? Give feedback.
All reactions