Skip to content

Conversation

@MarcoCusinato
Copy link
Contributor

In cases where many points are displayed as crosses the plots become crowded. This change those scatter plots into hexbins.

This change affects: PyGRB plotting

This change changes: plotting

Please see this

@MarcoCusinato MarcoCusinato added the PyGRB PyGRB development label Jun 25, 2025
@github-project-automation github-project-automation bot moved this to In Progress in PyGRB Development Jun 25, 2025
@pannarale
Copy link
Contributor

Addressing one of the tasks in #3660

trigs[1] = numpy.array(trigs[1])
mask = (trigs[0] >= xmin) & (trigs[0] <= xmax)
norm = matplotlib.colors.LogNorm()
gsize = 300
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the bins are a bit too small here, isolated single triggers are hard to see. I suggest using 150 here. I also noticed the logic below to choose the bins based on the number of samples. I think if you use 150 it will be good in all cases. We can complicate the logic once we have looked at several cases later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PyGRB PyGRB development

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants