Upside down display of graph

6 vues (au cours des 30 derniers jours)
MUHAMMAD BILAL
MUHAMMAD BILAL le 16 Fév 2019
Commenté : Jeremy Reyes le 19 Oct 2021
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 commentaire
Walter Roberson
Walter Roberson le 16 Fév 2019
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 .

Connectez-vous pour commenter.

Réponses (1)

Yair Altman
Yair Altman le 16 Fév 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
  1 commentaire
Jeremy Reyes
Jeremy Reyes le 19 Oct 2021
The 4th option helped, thank you.

Connectez-vous pour commenter.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by