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.

raster is not working as expected

See original GitHub issue

The last cell at this notebook illustrates an issue. Essentially the plot is flipped. Bokeh version:

%%opts Raster [colorbar=True height=dh width=dw toolbar='above']
hv.Raster(face)

image

Plotly version:

%%output backend='plotly'
%%opts Raster [colorbar=True height=dh width=dw]
hv.Raster(face)

image

No matter what I do - it doesn’t want to be fixed. I’m really confused.

Any suggestion for workaround would be much appreciated

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Jun 23, 2018

I say conditionally because this should only apply to the Raster element specifically, so something like this should work:

if type(element) is Raster:
    array = array.T[::-1]
0reactions
jlstevenscommented, Jun 27, 2018

Note that I’ve submitted PR https://github.com/bokeh/bokeh/pull/8031 to fix https://github.com/bokeh/bokeh/issues/7959 which corrects the hover behavior for inverted ranges.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RASTER MINUS FUNCTION NOT WORKING AS EXPECTED
I have two ASCII rasters with identical extent and cell size representing mean annual temperatures. I want to difference the two rasters to ......
Read more >
raster::crop not working as expected - GIS Stack Exchange
I'm suddenly getting the same error with raster::projectRaster and other functions, even though the code previously worked fine. I wonder if it ...
Read more >
raster is not working as expected · Issue #2821 · holoviz/holoviews ...
The last cell at this notebook illustrates an issue. Essentially the plot is flipped. Bokeh version: %%opts Raster [colorbar=True height=dh width=dw ...
Read more >
000969: The input raster is not integer type.—ArcGIS Pro
The data type (or pixel type) of the input raster must be integer. Review the syntax of the command, which should indicate the...
Read more >
R raster::extract function not working as expected
I'm trying to do some polygon/raster work in R. The extract function isn't working as I'd expect. Here's a reproducible example.
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