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.

coordinate labels in a bokeh backend

See original GitHub issue

The latitude longitude labels in a geoviews Image have a weird formatting issue.

  1. Labels are formatted scientific.
  2. It is just not about label formatting, the values are multiplied by 10^5.

The last plot in bokeh examples page is a good demonstration of this issue. http://geo.holoviews.org/Working_with_Bokeh.html

one could also reproduce with a xarray sample data

import xarray as xr
import holoviews as hv
import geoviews as gv
T_data   = xr.tutorial.load_dataset('air_temperature')
gT_data = gv.Dataset(T_data.isel(time=0))
gv.Image(gT_data,kdims=['lon','lat'])

if one plots the same data using holoviews using hv.Image(gT_data) the latitude labels/longitude labels are right but then overlaying coastlines is not available. Hence, I think there might be an easy fix for someone who knows geoviews/holoviews in depth.

some of the consequences i face are

  1. Utility of hover tool is limited as the coordinate information displayed is useless.
  2. It also stops a user from making interactive plots using a stream. although there is a fix by dividing coordinates by 100000. An example of 1,2 here
  3. it also makes overlaying a Point or a Path unnatural, one has to pass latitude , longitude values multipled by 10^5.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
suvarchalcommented, Oct 29, 2017

oh great it works! after latest holoviews master and bokeh 0.12.10 image

will create a new issue for hover Thanks

0reactions
philippjfrcommented, Oct 29, 2017

No, you just need latest HoloViews master or a dev release as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Labels in Bokeh - GeeksforGeeks
In this article, we will be learning about Labels in Bokeh. Labels are the short words or phrases that are used in order...
Read more >
figure — Bokeh 2.4.1 Documentation
A label for the x-axis. ... only in backends capable of bidirectional communication (server, notebook). ... Specify the output backend for the plot...
Read more >
How can I add label to a Bokeh barchart? - Stack Overflow
I wanted to plot a bar chart with labels (that is value of 'Number') annotated on the top for each bar and proceeded...
Read more >
Introduction to plotting with Bokeh - BE/Bi 103 a
This kind of glyph requires that we specify which column of the data source will serve to place the glyphs along the x...
Read more >
Plotting with Bokeh — HoloViews v1.15.3
Here's an example of HoloViews Elements using a Bokeh backend, with bokeh's ... provide control over the scaling of the plot dimensions and...
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