Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-5762

XYPlot: Optimize decimated plot aspect ratio

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Won't Fix
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: SUIT

      Description

      12/13/2018

      Ideally, we'd like heatmap bins to be squares. How do we support square bins?

      When we are talking about "square" bins, I see at least two interpretations:
      1. X and Y are on the same scale (same units) and we want bin size to be the same in x and y directions.
      2. Given xyratio and total number of bins, the bins should appear as squares for the given axes ranges.

      Currently, when creating a heatmap, we allow user to specify the number of bins `nbins.x` and `nbin.y` and axis range (xmin, xmax) and (ymin,ymax) . The default number of bins in x and y direction is 100. The default range is data range.

      In Plotly chart, user can change axes ranges interactively, and we probably don't want to recalculate bins based on these changes. Plotly allows to preserve aspect ratio by linking the axes using `scaleanchor` and `scaleratio` attributes.

      4/11/2016
      Currently decimation process assumes aspect ratio 1. For decimated plots, the displayed area size (or user supplied value) needs to be used as an aspect ratio to approximate square bins.

      • When aspect ratio changes, decimation process needs to be redone.
      • To avoid server calls on resize, disallow flexible aspect ratio for decimated data.

        Attachments

          Issue Links

            Activity

            No builds found.
            tatianag Tatiana Goldina created issue -
            tatianag Tatiana Goldina made changes -
            Field Original Value New Value
            Epic Link DM-5324 [ 23116 ]
            tatianag Tatiana Goldina made changes -
            Sprint JS conversion 4 [ 202 ]
            tatianag Tatiana Goldina made changes -
            Rank Ranked higher
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Sprint JS conversion 4 [ 202 ]
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Sprint JS conversion 5 [ 211 ]
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Rank Ranked higher
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Epic Link DM-5324 [ 23116 ] DM-5445 [ 23273 ]
            tatianag Tatiana Goldina made changes -
            Sprint JS conversion 5 [ 211 ] JS conversion 6 [ 212 ]
            tatianag Tatiana Goldina made changes -
            Rank Ranked lower
            tatianag Tatiana Goldina made changes -
            Rank Ranked lower
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Epic Link DM-5445 [ 23273 ] DM-5449 [ 23277 ]
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Epic Link DM-5449 [ 23277 ] DM-4689 [ 21934 ]
            tatianag Tatiana Goldina made changes -
            Sprint JS conversion 6 [ 212 ]
            tatianag Tatiana Goldina made changes -
            Rank Ranked lower
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Epic Link DM-4689 [ 21934 ] DM-3596 [ 19693 ]
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Labels FireflyCCB
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Epic Link DM-3596 [ 19693 ] DM-10112 [ 31703 ]
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Epic Link DM-10112 [ 31703 ] DM-8400 [ 28011 ]
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Labels FireflyCCB FireflyCCB density
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Epic Link DM-8400 [ 28011 ] DM-10570 [ 32500 ]
            tatianag Tatiana Goldina made changes -
            Link This issue relates to DM-13099 [ DM-13099 ]
            tatianag Tatiana Goldina made changes -
            Description Currently decimation process assumes aspect ration 1. For decimated plots, the displayed area size (or user supplied value) needs to be used as an aspect ratio to approximate square bins.
            - When aspect ratio changes, decimation process needs to be redone.
            - To avoid server calls on resize, disallow flexible aspect ratio for decimated data.
            Currently decimation process assumes aspect ration 1. For decimated plots, the displayed area size (or user supplied value) needs to be used as an aspect ratio to approximate square bins.
            - When aspect ratio changes, decimation process needs to be redone.
            - To avoid server calls on resize, disallow flexible aspect ratio for decimated data.


            tatianag Tatiana Goldina made changes -
            Watchers Tatiana Goldina [ Tatiana Goldina ] Cindy Wang, Tatiana Goldina, Xiuqin Wu [ Cindy Wang, Tatiana Goldina, Xiuqin Wu ]
            Description Currently decimation process assumes aspect ration 1. For decimated plots, the displayed area size (or user supplied value) needs to be used as an aspect ratio to approximate square bins.
            - When aspect ratio changes, decimation process needs to be redone.
            - To avoid server calls on resize, disallow flexible aspect ratio for decimated data.


            12/13/2018

            Ideally, we'd like heatmap bins to be squares. How do we support square bins?

            When we are talking about "square" bins, I see at least two interpretations:
            1. X and Y are on the same scale (same units) and we want bin size to be the same in x and y directions.
            2. Given xyratio and total number of bins, the bins should appear as squares if (xmax-xmin)/(ymax-ymin) = xyratio

            Currently, when creating a heatmap, we allow user to specify the number of bins `nbins.x` and `nbin.y` and axis range (xmin, xmax) and (ymin,ymax) . The default number of bins in x and y direction is 100. The default range is data range.


            4/11/2016
            Currently decimation process assumes aspect ratio 1. For decimated plots, the displayed area size (or user supplied value) needs to be used as an aspect ratio to approximate square bins.
            - When aspect ratio changes, decimation process needs to be redone.
            - To avoid server calls on resize, disallow flexible aspect ratio for decimated data.


            tatianag Tatiana Goldina made changes -
            Description 12/13/2018

            Ideally, we'd like heatmap bins to be squares. How do we support square bins?

            When we are talking about "square" bins, I see at least two interpretations:
            1. X and Y are on the same scale (same units) and we want bin size to be the same in x and y directions.
            2. Given xyratio and total number of bins, the bins should appear as squares if (xmax-xmin)/(ymax-ymin) = xyratio

            Currently, when creating a heatmap, we allow user to specify the number of bins `nbins.x` and `nbin.y` and axis range (xmin, xmax) and (ymin,ymax) . The default number of bins in x and y direction is 100. The default range is data range.


            4/11/2016
            Currently decimation process assumes aspect ratio 1. For decimated plots, the displayed area size (or user supplied value) needs to be used as an aspect ratio to approximate square bins.
            - When aspect ratio changes, decimation process needs to be redone.
            - To avoid server calls on resize, disallow flexible aspect ratio for decimated data.


            12/13/2018

            Ideally, we'd like heatmap bins to be squares. How do we support square bins?

            When we are talking about "square" bins, I see at least two interpretations:
            1. X and Y are on the same scale (same units) and we want bin size to be the same in x and y directions.
            2. Given xyratio and total number of bins, the bins should appear as squares for the given axes ranges.

            Currently, when creating a heatmap, we allow user to specify the number of bins `nbins.x` and `nbin.y` and axis range (xmin, xmax) and (ymin,ymax) . The default number of bins in x and y direction is 100. The default range is data range.

            In Plotly chart, user can change axes ranges interactively, and we probably don't want to recalculate bins based on these changes. Plotly allows to preserve aspect ratio by linking the axes using `scaleanchor` and `scaleratio` attributes.

            4/11/2016
            Currently decimation process assumes aspect ratio 1. For decimated plots, the displayed area size (or user supplied value) needs to be used as an aspect ratio to approximate square bins.
            - When aspect ratio changes, decimation process needs to be redone.
            - To avoid server calls on resize, disallow flexible aspect ratio for decimated data.


            tjenness Tim Jenness made changes -
            Remote Link This issue links to "Page (Confluence)" [ 34132 ]
            Hide
            tjenness Tim Jenness added a comment -

            What's the status of this ticket? cc/ Gregory Dubois-Felsmann

            Show
            tjenness Tim Jenness added a comment - What's the status of this ticket? cc/ Gregory Dubois-Felsmann
            Hide
            tatianag Tatiana Goldina added a comment - - edited

            There is no plans to work on this. The aspect ratio of the plot is not taken into account to adjust the number of the bins in x or y direction.

            Show
            tatianag Tatiana Goldina added a comment - - edited There is no plans to work on this. The aspect ratio of the plot is not taken into account to adjust the number of the bins in x or y direction.
            Hide
            tatianag Tatiana Goldina added a comment -

            It's unlikely that this improvement will be implemented in the foreseeable future.

            Show
            tatianag Tatiana Goldina added a comment - It's unlikely that this improvement will be implemented in the foreseeable future.
            tatianag Tatiana Goldina made changes -
            Resolution Done [ 10000 ]
            Status To Do [ 10001 ] Won't Fix [ 10405 ]

              People

              Assignee:
              tatianag Tatiana Goldina
              Reporter:
              tatianag Tatiana Goldina
              Watchers:
              Cindy Wang [X] (Inactive), Tatiana Goldina, Tim Jenness, Xiuqin Wu [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.