Using custom color scheme in vaex.viz.histogram #1728
-
Hi, I am trying to visualise a large amount of timestamps of deliveries made in the past two years (+- 3 billion data points) where each data point has a value associated with it regarding its timing: 'Too early', 'On time' or 'Too late'. I successfully plotted the data points with the viz.histogram function, but is it possible to color datapoints regarding to their value? I would like them to be yellow, green and red, respectively. Otherwise, is there perhaps another way of visualising that would better suit my needs? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Well, you can't really plot 3 billion points anyway (if I understand you correctly).. That's why we do histograms. You can easily overplot 3 histograms associated with each of your 3 flags. Would that be helpful? df.viz.histogram(df.timestamps, selection=df.flag == 'Too early') # And similar for the other 2 choices. |
Beta Was this translation helpful? Give feedback.
-
Maybe stacked histograms? |
Beta Was this translation helpful? Give feedback.
Well, you can't really plot 3 billion points anyway (if I understand you correctly).. That's why we do histograms.
Maybe I am misunderstanding what you are trying to do.
You can easily overplot 3 histograms associated with each of your 3 flags. Would that be helpful?
You can do it with something like