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.

Image invert_yaxis shifts the plot after upgrading panel library

See original GitHub issue

ALL software version info

Python 3.7 holoviews==1.13.5 bokeh==2.2.3 panel==0.10.1

Description of expected behavior and the observed behavior

The Image is shifted after using invert_yaxis. The problem appeared after upgrading panel from 0.9.7 to 0.10.1.

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

import numpy as np
import holoviews as hv
import panel as pn
hv.extension('bokeh')

vector = np.arange(100)
data = np.outer(vector, vector)

hv.Image(data).opts(invert_yaxis=True)

Screenshots or screencasts of the bug in action

invert_axis

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Hoxbrocommented, Oct 31, 2020

I think this is gonna be fixed with #4665. I tried to run it and got all of them to show up correctly.

Screenshot 2020-10-31 at 21 12 49

0reactions
philippjfrcommented, Jan 18, 2021

Closing now that Panel 0.10.3 with a fix is released.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to invert the x or y axis - Stack Overflow
DisplacedAussie's answer is correct, but usually a shorter method is just to reverse the single axis in question: plt.scatter(x_arr, y_arr) ax = plt.gca() ......
Read more >
Chapter 4. Visualization with Matplotlib - O'Reilly
At this point, any plt plot command will cause a figure window to open, and further commands can be run to update the...
Read more >
Customizing Plots — HoloViews v1.15.3
Inverting axes : Flipping the x-/y-axes and inverting an axis. Axis labels: Setting axis labels using dimensions and options. Axis ranges: Controlling axes...
Read more >
Visualization with Matplotlib | Python Data Science Handbook
Matplotlib is a multi-platform data visualization library built on NumPy arrays, and designed to work with the broader SciPy stack.
Read more >
plot3D: Plotting Multi-Dimensional Data
When x and y is a vector, the function uses R-function image. This means that the x- and y- axis will extend the...
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