Color Bar goes Crazy for Multiple Plots in same axes

What I am plotting is a slice of data (a contour plot), perpendicular to an image that shows the ground surface. If I use a colorbar just plotting the contour plot, I don't have any problems. However, if I have both the image and the contour plot, the color bar goes crazy. it fills the whole figures window with numbers and "x y z" like a matrix. Has anyone encountered this? Is there a way to just associate a colorbar with a single plot when the axes has multiple plots?

댓글 수: 1

John
John 2012년 10월 4일
I realize now that what it does is multiply all of the labels. so if I remove the x-labels, x-ticks, etc, it doesn't have the same problem. I would like to keep the labels on of course, only one instance of each rather than dozens. It also multiplies things I added to the plot with text(). This is very strange behavior.

댓글을 달려면 로그인하십시오.

 채택된 답변

John
John 2012년 10월 4일

0 개 추천

Ok, many thanks to the folks at Matlab support. fixed this problem for me. the problem is with the opengl renderer. Because my figure has transparency, it was necessary to use opengl, but, by switching to software and off the graphics card using the command:
opengl software
The issue was fixed.

추가 답변 (0개)

카테고리

질문:

2012년 10월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by