scaled image of plot
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Thorsten
el 20 de Mayo de 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 comentarios
Thorsten
el 20 de Mayo de 2015
Editada: Thorsten
el 20 de Mayo de 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.
Ver también
Categorías
Más información sobre Convert Image Type en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!