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.

invert_yaxis=True not working with bokeh backend ?

See original GitHub issue

Thanks for contacting us! Please read and follow these instructions carefully, then delete this introductory text to keep your issue easy to read. Note that the issue tracker is NOT the place for usage questions and technical assistance; post those at Discourse instead. Issues without the required information below may be closed immediately.

ALL software version info

hvplot:0.7.0 xarray:0.16.2

Description of expected behavior and the observed behavior

Expected behavior: Screenshot 2020-12-15 at 15 20 51

Observed behavior: Screenshot 2020-12-15 at 15 21 34

Complete, minimal, self-contained example code that reproduces the issue

import xarray as xr
import hvplot.xarray
import holoviews as hv

np.random.seed(1)
refdist = np.array(range(100,1000,100))
depth = np.array(range(5,30,10))
data = np.random.uniform(low = -5, high = 5, size = (len(refdist), len(depth)))

ds = xr.Dataset(
    {   "V": (["refdist", "depth"], data),
    },
    coords={
        "refdist": (refdist),
        "depth": (depth),
    },
)


cf=ds['V'].hvplot.contourf(z='V', x='refdist', y='depth', levels=10)
cf

cf.opts(invert_yaxis=True)

invert_yaxis=True doesn’t change the orientation of the plot cf

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jbednarcommented, Dec 16, 2020

No, Panel. There’s a Panel issue that affects HoloViews and hvPlot layouts: https://github.com/holoviz/panel/pull/1818 The fix is merged, but not yet released.

1reaction
jbednarcommented, Dec 16, 2020

I believe if you roll back Panel to an earlier release this should be fixed; can’t recall which version. Should also be fixed in the next Panel release, but that’s not out yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bokeh backend could not plot any Elements in the Overlay. #917
I think this is friction and makes hvplot harder to use than it has to be. Instead an empty but working plot should...
Read more >
plots — Bokeh 2.4.2 Documentation
Specify the output backend for the plot area. match_aspect ... If True , the widget will be greyed-out and not responsive to UI...
Read more >
Bar plots in holoviews with bokeh backend do not overlay
To respond to your specific issues: I can overlay bars in matplotlib backend and somewhat with plotly - but not with bokeh.
Read more >
Working with Bokeh - GeoViews
The Bokeh backend offers much more advanced tools to interactively explore data, making good use of GeoViews support for web mapping tile sources....
Read more >
Plotting with Bokeh — HoloViews v1.15.3
Working with bokeh directly#. When HoloViews outputs bokeh plots it creates and manipulates bokeh models in the background. If at any time you...
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