earthquake-eventpages icon indicating copy to clipboard operation
earthquake-eventpages copied to clipboard

Y-axis issue on Intensity v Distance plot

Open ehunter-usgs opened this issue 5 years ago • 4 comments

I believe this was a problem at one point in the past?

  • https://earthquake.usgs.gov/earthquakes/eventpage/se60233907/dyfi/intensity-vs-distance
  • https://earthquake.usgs.gov/earthquakes/eventpage/uu60315157/dyfi/intensity-vs-distance
  • https://earthquake.usgs.gov/earthquakes/eventpage/us1000jb8d/dyfi/intensity-vs-distance

That last one has no plot at all?

ehunter-usgs avatar Mar 08 '19 00:03 ehunter-usgs

@ehunter-usgs I noticed some weird y-axis behavior with the shakemap plots I've been working on and the issue seen in those first two links should be resolved with the incoming update. That third link is a little weird... There's only one response, which is an edge case we test for (I'm pretty sure), but haven't ever visually confirmed... looks like it needs some work, thanks for pointing it out!

dslosky-usgs avatar Mar 18 '19 17:03 dslosky-usgs

Is there any progress on this? This is still happening on all the live DYFI events.

vinceq-usgs avatar May 07 '19 03:05 vinceq-usgs

Some more testing.... resizing the browser window can create multiples of the Y axis ticks, up to 5 ticks (e. g. 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 ....) However, looking at the values of the plotted points, it seems that the graph is attempting to plot decimal intensities (2.0 2.2 2.4 2.6. 2.8...) but rendering them as integers (2 2 2 2 2...)?

vinceq-usgs avatar May 07 '19 03:05 vinceq-usgs

Hey @vinceq-usgs, the fix for this is encompassed in #1735! Just waiting for the HazDev team to get some time to checkout and merge the PR

dslosky-usgs avatar May 07 '19 15:05 dslosky-usgs