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!