Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axes ranges not working for skewed grids in 3D. #40

Open
pfebrer opened this issue May 29, 2021 · 0 comments
Open

Axes ranges not working for skewed grids in 3D. #40

pfebrer opened this issue May 29, 2021 · 0 comments
Labels
GridPlot Issues related to GridPlot

Comments

@pfebrer
Copy link
Owner

pfebrer commented May 29, 2021

x_range, y_range and z_range do not work generally for the representation of skewed grids in 3D.

If one of the lattice vectors of the cell is parallel to a cartesian axis, then for that particular axis it works. E.g.:

cell = [
   [ 0, 2, 0]
   [ 0.5, 0, 1]
   [ 2, 0,  -1]
]

Then y_range works because [0,2,0] is a lattice vector of the cell.

For now, the advise is to just adjust the axes ranges in the plot display (e.g. with plotly update_layout(yaxis_range=[0, 3]).

@pfebrer pfebrer added the GridPlot Issues related to GridPlot label May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GridPlot Issues related to GridPlot
Projects
None yet
Development

No branches or pull requests

1 participant