JuliaInterop / JuliaInterop/MATLAB.jl
Saving figure using export_fig using gcf
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 286
- Forks
- 64
- PR merge metrics
- No merged PRs in 30d
Description
I'm attempting to use some old plotting code, and I can't seem to get export_fig to save. Here's a minimal example showing the behavior.
using MATLAB
y = linspace(2., 3., 500)
mat"plot($(y))"
mat"export_fig(gcf,'test.png')"
I can't find test.png anywhere on the system, and neither Julia nor Matlab gives an error.
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
Start by running the minimal Julia example from the issue and check how MATLAB.jl forwards the mat"..." commands to MATLAB. Trace the handling of export_fig(gcf,'test.png') and determine why no file or error is produced. Done means the example saves test.png or reports the underlying failure clearly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia, matlab
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100