scaled image of plot
조회 수: 2 (최근 30일)
이전 댓글 표시
I've created a very large image of a time series data set [~300,000 x 75] pixels. Below that image I would like to create and append a time series signal component (an x,y-type plot) in the form of an image with time axis labels. Is it possible to create a figure to this exact same scale (the dataset is the same dimension), then convert it into an image that I may combine similarly to [img1;img2]?
댓글 수: 0
답변 (1개)
Thorsten
2015년 5월 20일
I think the result would look awkward, (300000 x 75 is quite an extreme format). But you can do it: 1. plot the graph, 2. save the figure using print -dpng, 3. read the png file, 4. resize it using imresize and finally 5. concatenate the two images [img1; img2].
댓글 수: 2
Thorsten
2015년 5월 20일
편집: Thorsten
2015년 5월 20일
I do not know of such a function. But you could do your plot my allocating a large matrix of ones and then setting for each x the corresponding y value in the matrix to 0. Of course you have to map the range of y to some the choosen height of the matrix.
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!