Skip to content

Commit

Permalink
$mol_plot_graph: fix inverted dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-donarise committed Jun 11, 2024
1 parent 2dc6e69 commit aeba86c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plot/graph/graph.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ namespace $.$$ {

next.x.max = this.repos_x( next.x.max )
next.x.min = this.repos_x( next.x.min )

if( next.x.max < next.x.min ) next.x = next.x.inversed
next.y.max = this.repos_y( next.y.max )
next.y.min = this.repos_y( next.y.min )
if( next.y.max < next.y.min ) next.y = next.y.inversed

return next
}
Expand Down

0 comments on commit aeba86c

Please sign in to comment.