Issues plotting heat map? Not all data points showing?

# Create an interactive heatmap
fig = px.density_mapbox(
    outage_counts, 
    lat='LATITUDE', 
    lon='LONGITUDE', 
    z='counts', 
    radius=10,
    center=dict(lat=29.76, lon=-95.36),  # Center of the map (Houston, Texas)
    zoom=10,
    mapbox_style="open-street-map"
)

# # Update layout with a more sensitive color scale
# fig.update_layout(coloraxis_colorbar=dict(
    # title="Outage Count",
    # tickmode="array",
    # tickvals=[1, 2, 5, 10, 20, 50, 100],
    # ticktext=["1", "2", "5", "10", "20", "50", "100"]
# ))


#fig.update_layout(mapbox_style="dark", mapbox_accesstoken="")
fig.show()

fig_all_points = px.scatter_mapbox(
    combined_data, 
    lat='LATITUDE', 
    lon='LONGITUDE', 
    size_max=15, 
    zoom=10,
    mapbox_style="stamen-terrain"
)
fig_all_points.update_layout(mapbox_style="dark", mapbox_accesstoken="")
fig_all_points.show()

You can see below scatter vs heatmap.

Pulling from the same data…


hi @Nonlin
:wave: Welcome to the community.

Can you please share a minimal reproducible example so we can run it locally?