question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I have a rect based heatmap create on top of the following figure:

fig = figure(title="Detailed view",
                 x_axis_type="datetime",
                 y_range=FactorRange(),
                 y_axis_location='right',
                 tools="xpan,reset,undo",
                 min_border=0,
                 active_drag='xpan',
                 plot_height=height,
                 output_backend="webgl",
                 **theme['plot'])

the tect is defined as follows:

rect = fig.rect(x=x,
                    y='Tags',
                    width=glyph_size,
                    height=1,
                    source=source,
                    line_color={
                        'field': 'value',
                        'transform': mapper
                    },
                    fill_color={
                        'field': 'value',
                        'transform': mapper
                    },
                    selection_color={
                        'field': 'value',
                        'transform': selected_mapper
                    },
                    hover_line_color=theme['heatmap_colors']['hover'],
                    nonselection_fill_alpha=1,
                    nonselection_line_alpha=1)

Where glyph_size is a float representing the size in milliseconds. The chart has a green background and paints white rect glyphs where the data frame is not NaN.

For some reason I see the following: 8200744f7378ba06a175af90e636eb1e5bfe8cca

Notice the random green columns in the chart. These are not real, there is data there! 7ff24657042590bd65e30f8835c6483e17fd4514_2_576x500

Here we can see that we have a data point at 00:00 that should be 3 minutes size (180000ms glyph size). Screenshot from 2020-10-13 16-41-40

For some reason, 2 errors occur in this chart:

  1. the glyphs are not center around the correct time (or the x_range is not aligned, who knows)
  2. the size of the glyphs seems to be incorrect.

We can see here, that the point should be at 00:03 but it’s positioned somewhere around 00:01! Screenshot from 2020-10-13 16-53-18

What I was originally trying to achieve: draw a time-series based heatmap with the glyphs starting from their respective timestamps and in the size of the sample rate (in this case 3 minutes)

Thank you!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ItamarShDevcommented, Oct 16, 2020

BTW, for future reference, i shifted to use quad with a distinctive left right values, which made it correct, and even faster on larger data sets.

Thanks you all for the responses

0reactions
ItamarShDevcommented, Oct 16, 2020

Thank you @bryevdv. It does seems like a duplicate of #10488

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug (2006) - IMDb
An unhinged war veteran holes up with a lonely woman in a spooky Oklahoma motel room. The line between reality and delusion is...
Read more >
bug - Wiktionary
(entomology) An insect of the order Hemiptera (the “true bugs”). Any of various species of marine or freshwater crustaceans; e.g. a Moreton Bay...
Read more >
Bug Definition & Meaning - Merriam-Webster
The meaning of BUG is any of an order (Hemiptera and especially its suborder Heteroptera) of insects (such as an assassin bug or...
Read more >
Bug - Wikipedia
A terrestrial arthropod animal (with at least six legs). Insect, a six-legged arthropod · Covert listening device, used in surveillance, espionage and policing ......
Read more >
BUG | definition in the Cambridge English Dictionary
bug noun (INSECT) ... an insect: Some tiny white bugs had eaten the leaves of my house plants. ... A bug is also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found