Skip to content
This repository was archived by the owner on Mar 16, 2022. It is now read-only.
This repository was archived by the owner on Mar 16, 2022. It is now read-only.

Setting the currently visible window to new coords does not work correctly in y direction #62

@lehnerchristian

Description

@lehnerchristian
  • Release number or git hash:
  • Web browser version and OS:

Steps to reproduce

  1. Open a datavisyn scatterplot (e.g. in the demo folder the index.html file (I'll push a new version of this file for reproducing this issue))
  2. Try to set the currently visible window (https://github.com/datavisyn/datavisyn-scatterplot/blob/develop/src/AScatterplot.ts#L684-L696), e.g. x1 = 25, x2 = 75, y1 = 25, y2 = 75 (this should be a zoom factor of 2 in the demo having the domain in x and y set to [0, 100])

Observed behavior

  • In x direction the window is correctly set to [25, 75], however in y direction the window is set to [75, 125]

datavisyn_scatterplot_translate_error

Expected behavior

  • the window should be set to [25, 75] in both directions

Metadata

Metadata

Labels

type: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions