getplotlyfig() Error
Nobody has claimed this yet.
- Dominant language
- MATLAB
- Stars
- 413
- Forks
- 166
- PR merge metrics
- No merged PRs in 30d
Description
Hi. I am using the latest Plotly MATLAB release (2.2.5). I am trying to retrieve a figure from my account, using getplotlyfig('userXYZ','80'). I am passing the number of the figure as a string (as shown in the user guide examples). Uploading new plotly graphs works as expected, however, when trying to retrieve graphs I am receiving the following error:
> Reference to non-existent field 'Content_Type'.
> Error in response_handler (line 6)
> if (strcmp(extras.allHeaders.Content_Type, 'image/jpeg') || ...
> Error in plotlygetfile (line 26)
> response_handler(response_string, extras);
> Error in plotlyfig/download (line 410)
> plotlyfig = plotlygetfile(file_owner, file_id);
> Error in getplotlyfig (line 25)
> p.download(file_owner, file_id);
Can somebody help resolve this please?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with getplotlyfig('userXYZ','80') using Plotly MATLAB 2.2.5. Start at response_handler (line 6), then trace the response through plotlygetfile (line 26), plotlyfig/download (line 410), and getplotlyfig (line 25). Done means retrieving an existing figure no longer raises the missing Content_Type field error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- matlab
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100