Skip to content

fix issue #225 #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 5, 2021
Merged

fix issue #225 #228

merged 4 commits into from
Aug 5, 2021

Conversation

gilbertogalvis
Copy link
Contributor

No description provided.

@VolKa79
Copy link

VolKa79 commented Aug 3, 2021

This works for
x = 5:8;
y = [1 2 4 3];
area(x,y);

while for other case for area plot
Y = [1 5 3; 3 2 7; 1 5 3; 2 6 1];
area(Y)

we have:

sc1

@xarico10
Copy link
Contributor

xarico10 commented Aug 3, 2021

For the case @VolKa79 mentions, I get an empty figure and multiple warning messages.

Y = [1 5 3; 3 2 7; 1 5 3; 2 6 1];
area(Y)

fig2plotly(gcf, 'offline', false);

Prints the following:

Index in position 1 exceeds array bounds.
We had trouble parsing the area object.
This trace might not render properly.

Index in position 1 exceeds array bounds.
We had trouble parsing the area object.
This trace might not render properly.

Index in position 1 exceeds array bounds.
We had trouble parsing the area object.
This trace might not render properly.

Captura de Pantalla 2021-08-03 a la(s) 3 03 06 p  m

Captura de Pantalla 2021-08-03 a la(s) 3 03 15 p  m

@harshpurwar
Copy link
Contributor

Let's get this done with... I think this issue is now resolved.
@gilbertogalvis Could you check if this is compatible with your version of MATLAB?

image
image

@gilbertogalvis
Copy link
Contributor Author

Screen Shot 2021-08-05 at 8 11 48 AM

still continue the problem

@harshpurwar
Copy link
Contributor

@gilbertogalvis I think this is due to the difference in the way MATLAB arranges Xdata and YData vectors in your MATLAB version. Now, this works on R2021a but I don't have access to R2019x or any older MATLAB versions, so you may have to test it on your computer and perhaps add in a check for the MATLAB version. You may use VertexData/VertexIndices for your MATLAB version.

Now we know that is not ideal but we may not have any other choice. If you have another idea please feel free to implement/share!

@xarico10 xarico10 merged commit 45dce29 into master Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants