Skip to content

Line paths are not correctly computed when their points are well-beyond the axis ranges #217

Closed
@ifll

Description

@ifll

When building a scatter plot with both x and y logarithmic axis there is an error when placing a line shape on the plot.

The line is sometimes well displayed but when trying to zoom it disappears or appears not well placed.

The code used for displaying the line is the following:

  • inside the layout variable for the plot making place the following:

var layout2 = {
.
.
.
shapes: [

                //line 45º

                {
                  type: 'line',
                  xref: 'x',
                  yref: 'y',
                  x0: 0.0001,
                  y0: 0.0001,
                  x1: 10000,
                  y1: 10000,
                  line: {
                    color: 'rgb(0, 0, 0)',
                    width: 1
                  }
                },



                   ],

              .
              .
              .
        };

there are around 1000 points to be displayed on the scatter plot

Do any of you know if this is a bug or if is is not the proper way to place a line on the plot and there is another method which could work?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions