New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plotting an image without white borders #211
Comments
If you just want the raw image itself (no axes), you can use ImageView's |
write_to_png(imagesc(rand(300,400)),"file.png") gives an error : Could you help me out? |
You have to use ImageView to plot the image, too. See https://github.com/timholy/ImageView.jl#programmatic-usage imgc, _ = view(img)
write_to_png(imgc, filename) |
Can't figure this out, i have a matrix 256x320 with temperature values from 20 - 50 celsius and when i run the code below it pops up empty window, I can adjust the contrast slider , but it gives me image in a grayscale, and i need a RGB image.
|
Currently there isn't a function like mn,mx = extrema(img)
lookup = round(Int, length(cmap)*(img-mn)/(mx-mn)
ImageCmap(lookup, cmap) where The better way would be to create a custom |
Hello
Is there a way to plot an image without axes labels and blank area around it (using imagesc)?
Regards
Mike
The text was updated successfully, but these errors were encountered: