Skip to content

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

@pfebrer

Description

@pfebrer

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]).

Metadata

Metadata

Assignees

No one assigned

    Labels

    GridPlotIssues related to GridPlot

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions