Need better resolution in my plot!
이전 댓글 표시
Hello,
I am working on a plot of a local density of states and want to know if anyone has any suggestions to improve the resolution.
Basically, all I am doing is taking a matrix of values and plotting these magnitudes on a lattice. The function I am doing to do this plot is pcolor, which I understand may not be the best choice. I am just not sure how to plot a matrix with a different function. If anyone knows of a better function or how to improve pcolor's resolution, it'd be greatly appreciated!
Attached are the relevant programs. I tried attaching the parameters complied from BdG, but they were too large even after zipping. I set the number of lattice sites N=60, so it does not take too long to compile (note this will affect the resolution but not terribly bad). Run example after the workspace has the relevant parameters loaded.
Any help will be greatly appreciated! Thanks.
댓글 수: 7
darova
2020년 2월 6일
Can you please simplify your question? I don't get anything. It's to complicated
You forgot the data
Marcus Rosales
2020년 2월 6일
Guillaume
2020년 2월 6일
It's unclear which of your file we should run. Example.m needs a mat file we don't have and BdG_hamiltonian.m is missing a Dwave variable or function.
Anyway, what does high resolution mean? pcolor (or other plotting tools) is going to plot no more or no less than the number of points you give it.
Marcus Rosales
2020년 2월 8일
Walter Roberson
2020년 2월 8일
Basically if you call pcolor, you can interpolate between the colors on the different sites (see the figure attachment). This interpolation is very pixelated,
No it isn't. Since you are not passing in x and y coordinates, the value at each location is simply the mean of the four surrounding values, which is effectively a low-pass filter that would have the effect of making the data less pixelated than it starts out.
The stripes that show up in the figure must be due to something in the function being computed, not due to pcolor.
Marcus Rosales
2020년 2월 10일
Walter Roberson
2020년 2월 10일
Since you are not passing in x and y coordinates, the value at each location is simply the mean of the four surrounding values, which is effectively a low-pass filter that would have the effect of making the data less pixelated than it starts out.
pcolor does not do any extrapolation in the mode you are calling it with. The number of faces it produces across is equal to one fewer than the number of columns, and the number of faces it produces down is one fewer than one number of rows. Each face is a solid color unless you use a "shading" command.
There is, of course, always issues if the size to allocate to each face according to the axes size and number of faces is not an integer number of pixels, but pcolor has nothing to do with how colors are chosen for that case.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!