scaled image of plot
4 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Thorsten
on 20 May 2015
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 Comments
Thorsten
on 20 May 2015
Edited: Thorsten
on 20 May 2015
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.
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!