Why won't my graph plot properly in the live script?

67 views (last 30 days)
I've been trying to plot this for a while. I restarted my laptop twice and I've updated Matlab and restarted it a few times. I don't know what could be happening. When I graph from the command window, it looks fine, so not sure what's up. I've got a Macbook M1 if that helps with anything. This has never happened before.
Marie Trang
Marie Trang on 28 Jan 2023
I tried that and unfortunately I can’t move around the plot. It’s just that portion displayed and it is stuck like that. I tried it on a brand new script also and the same result. I’m not sure if I need to uninstall and reinstall Matlab, but I noticed it only happens after I use the seqdotplot() formula because I opened a new live script and a regular plot([1:5],[1:5]) function came out normal, but as soon as I use seqdotplot(), it cuts to a corner of the plot and every plot after no matter if it’s the regular plot() function starts to plot only a corner and I can’t use the cursor to move around. This only happens in the application and Matlab Online works beautifully.

Sign in to comment.

Answers (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 28 Jan 2023
Your shown screenshot shows that you are viewing it in MLX- editor. If you hover your mouse over your plotted figure and click on the curved arrow ("Open in figure window") on the top left corner of the plotted figure in your MLX-file file, then full screen Figure will pop-up that should show your correct plot with all details.
  1 Comment
Marie Trang
Marie Trang on 28 Jan 2023
Edited: Marie Trang on 28 Jan 2023
Yes, I did that, but the separate figure window screen looks exactly the same as what is depicted in the screen shot of the live script editor. I cannot scroll or alter the plot to show the entire thing and it only plots the corner. Again, this is when I run it through the live script. If I do this in the command line, the figure window and plot look fine. I attached a photo for clarity.

Sign in to comment.


Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by