Skip to content

add ticktext example to matlab docs #414

Open
@cldougl

Description

@cldougl

Add to https://plot.ly/matlab/axes/

trace1 = struct(...
  'x', [1, 2, 3, 4], ...
  'y', [10, 15, 20, 25], ...
  'type', 'scatter');
data = {trace1};

layout = struct(...
    'xaxis', struct(...
        'ticktext', {{'one'; 'two'; 'three'; 'four'}}, ...
        'tickvals', [1, 2, 3, 4]));

response = plotly(data, struct('layout', layout, 'filename', 'axestext', 'fileopt', 'overwrite'));
plot_url = response.url

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions