MATLAB Answers

0

Upside down display of graph

Asked by MUHAMMAD BILAL on 16 Feb 2019
Latest activity Answered by Yair Altman on 16 Feb 2019
i am currently using Matlab r2015a in ubuntu 18.04.graph window is being displayed upside down .how to fix it?
here's my code:
>> x = [4 5 6];
>> y = sin(x);
>> plot (x,y)
And the displayuntitled.jpg

  1 Comment

Unless somehow the viewpoint has become from underneath then you have a display driver problem .
II have heard of this before but it was for older releases and very old vendor display drivers such as for vendor driver for Intel HD1000 graphics .

Sign in to comment.

1 Answer

Answer by Yair Altman on 16 Feb 2019

Try to do the following, step-by-step, until you find one of them solves the problem:
set(gcf,'renderer','opengl');
opengl('software'); % now plot and check
opengl('hardware'); % now plot and check
set(gcf,'renderer','painters'); % now plot and check

  0 Comments

Sign in to comment.