plotly / plotly/plotly_matlab

Legend Position Changes

Open
#140 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
MATLAB
Stars
413
Forks
166
PR merge metrics
No merged PRs in 30d

Description

When writing the figure to Matlab the default legend position is as shown below
image

However, there does not seem to be a way to edit this location such that it resembles the figure below. You need to manually go and edit the figure in plotly. This does seem possible in Python. But changing the orientation in Matlab by using
legend(legendData, 'Location','North','Orientation','horizontal')
does not produce the same figure once exported to plotly

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the MATLAB legend call shown in the issue and compare its exported Plotly figure with the requested legend placement. Trace the MATLAB-to-Plotly export path for legend location and orientation, then verify that the exported figure preserves the intended north, horizontal legend layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.