Skip to content

Have nticks be respected when tickmode='array' #1812

@talgalili

Description

@talgalili

Examples for how it should work (using R's plotly package)

Works fine:

library(plotly)
p <- plot_ly(
    width = 800,
    height = 500
  ) %>% layout(
    title = "fixed-ratio axes",
    xaxis = list(
      nticks = 10,
      domain = c(0, 0.45)
    ) )
p

image

Does not yet work:

library(plotly)
p <- plot_ly(
    width = 800,
    height = 500
  ) %>% layout(
    title = "fixed-ratio axes",
    xaxis = list(
      nticks = 10,
      domain = c(0, 0.45),
	tickmode='array'
    ) )
p

image

This feature is specifically important for creating cluster-heatmaps that allow more refined control over the number of ticks (see here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions