Skip to content
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

Not plotting x-axis line #234

Closed
xarico10 opened this issue Jul 30, 2021 · 1 comment
Closed

Not plotting x-axis line #234

xarico10 opened this issue Jul 30, 2021 · 1 comment
Assignees

Comments

@xarico10
Copy link
Contributor

xarico10 commented Jul 30, 2021

When using stem() to plot a discrete data sequence, the x-axis line on 0 is not being plotted.

Y = linspace(-2*pi,2*pi,50);
stem(Y)

fig2plotly(gcf, 'offline', false);

Expected and generated (https://chart-studio.plotly.com/~xarico10/745/#/) plots:
Captura de Pantalla 2021-07-31 a la(s) 6 47 28 p  m
Captura de Pantalla 2021-07-31 a la(s) 6 47 39 p  m

Examples on using stem() can be found on:
https://www.mathworks.com/help/matlab/ref/stem.html#responsive_offcanvas

@uzairmughal110
Copy link

By making the following changes
image
I am able to get x-axis for the graph

CODE
x = 0:50;
y = linspace(-8,6,length(x));

%Plotting
stem(x,y)
fig2plotly()

OUTPUT
image

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

No branches or pull requests

3 participants