Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Problems with Matlab figures

Subject: Problems with Matlab figures

From: Laila

Date: 17 Dec, 2008 15:35:03

Message: 1 of 6

Hello,

A few months ago my computer support team upgraded my Linux, and since then Matlab has not been running properly. It basically refuses to plot figures which are larger than a certain size, or to plot surfaces with a transparency. I contacted Matlab and they say it is a problem with my computer, but my computer support team has no idea what the problem is. I thought it could be a memory issue and even as a last resort suggested reverting to the older version of Linux, but I was ignored.

Has anyone else come across this problem?

Thanks

Subject: Problems with Matlab figures

From: Laila

Date: 17 Dec, 2008 15:47:02

Message: 2 of 6

to give a better idea about 'sizes' of plots that my matlab refuses to plot. For example, I have 20x20 matrix which I want to plot as a surface (or mesh), when i enter the command, nothing happens, I do not even get an error message.

Subject: Problems with Matlab figures

From: tristram.scott@ntlworld.com (Tristram Scott)

Date: 17 Dec, 2008 16:25:21

Message: 3 of 6

Laila <l.alabidi@qmul.ac.uk> wrote:
> to give a better idea about 'sizes' of plots that my matlab refuses to
> plot. For example, I have 20x20 matrix which I want to plot as a surface
> (or mesh), when i enter the command, nothing happens, I do not even get an
> error message.
>
>

It sounds like perhaps a problem with the OpenGL renderer. Later versions
of MATLAB have not been entirely consistent in how they deal with OpenGL
calls, so you might be able to make it work using a different version of
MATLAB.

You can check to see if this is the problem by asking MATLAB which renderer
it is using for your figures.

>> opengl info

Version = 2.1.2 NVIDIA 177.82
Vendor = NVIDIA Corporation
Renderer = Quadro FX 370/PCI/SSE2
MaxTextureSize = 8192
Visual = 0x4e (TrueColor, depth 24, RGB mask 0xff0000 0xff00 0x00ff)
Software = false
# of Extensions = 16

Driver Bug Workarounds:
OpenGLBitmapZbufferBug = 0
OpenGLWobbleTesselatorBug = 0
OpenGLLineSmoothingBug = 0
OpenGLClippedImageBug = 1
OpenGLEraseModeBug = 0

>> h = figure;
>> membrane
>> get(h,'renderer')

ans =

OpenGL

>> set(h,'renderer','zbuffer')

If you are using transparency, it will be rendered using OpenGL. You do
have the option of using software based OpenGL rendering, but results are
not always superb, and it is certainly not going to be as fast.

>> opengl software

Perhaps you can resolve the issues by installing the latest drivers for you
graphics card.


--
Dr Tristram J. Scott
Energy Consultant

Subject: Problems with Matlab figures

From: Laila

Date: 18 Dec, 2008 13:35:04

Message: 4 of 6

You're a genius! This worked like a charm for my surface and mesh plots. Thank you!

Subject: Problems with Matlab figures

From: tristram.scott@ntlworld.com (Tristram Scott)

Date: 18 Dec, 2008 16:24:21

Message: 5 of 6

Laila <l.alabidi@qmul.ac.uk> wrote:
> You're a genius! This worked like a charm for my surface and mesh plots.
> Thank you!

I am glad that helped.

Now I suggest you file a bug report with The MathWorks so that the real
problem can be resolved.

--
Dr Tristram J. Scott
Energy Consultant

Subject: Problems with Matlab figures

From: Vivek Saxena

Date: 31 Dec, 2008 12:58:02

Message: 6 of 6

I'm trying to remotely access MATLAB from my Fedora Core notebook computer. When I try to plot something, say using

h = figure;
membrane;

the plot shows up but the axes are not labelled with anything and I see empty boxes against the 3 axes, with dotted boundaries. I think this is a problem with the MATLAB installation on the server itself, but I was wondering what could possibly be wrong. When I use MATLAB on the server physically (not remotely) I face the same problem.

Could this be due to a bad driver installation or some OpenGL issue?

"Laila " <l.alabidi@qmul.ac.uk> wrote in message <gib677$4ib$1@fred.mathworks.com>...
> Hello,
>
> A few months ago my computer support team upgraded my Linux, and since then Matlab has not been running properly. It basically refuses to plot figures which are larger than a certain size, or to plot surfaces with a transparency. I contacted Matlab and they say it is a problem with my computer, but my computer support team has no idea what the problem is. I thought it could be a memory issue and even as a last resort suggested reverting to the older version of Linux, but I was ignored.
>
> Has anyone else come across this problem?
>
> Thanks

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us