Upside down display of graph

9 次查看(过去 30 天)
MUHAMMAD BILAL
MUHAMMAD BILAL 2019-2-16
评论: Jeremy Reyes 2021-10-19
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 个评论
Walter Roberson
Walter Roberson 2019-2-16
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 .

请先登录,再进行评论。

回答(1 个)

Yair Altman
Yair Altman 2019-2-16
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

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by