Display Images #184
Replies: 8 comments 12 replies
-
(using the
|
Beta Was this translation helpful? Give feedback.
-
Just to make sure I understand: what do you get if you run this example on Windows? https://mbaz.github.io/Gaston.jl/stable/2dplots/#RGB-image-1 |
Beta Was this translation helpful? Give feedback.
-
According to gnuplot's user manual, on Windows it will look for the file |
Beta Was this translation helpful? Give feedback.
-
Yeah, creating and ignoring |
Beta Was this translation helpful? Give feedback.
-
OK, So we're making progress. Now, for grayscale image I use From your suggestion I understand that for images they should be |
Beta Was this translation helpful? Give feedback.
-
As described in the documentation, "with image pixels" reduces the amount of processing (like antialiasing, interpolation, etc) that the terminal does before displaying the image. For RGB images, they should be represented as
|
Beta Was this translation helpful? Give feedback.
-
It's not an
For RGB images (3-D matrices), just replace |
Beta Was this translation helpful? Give feedback.
-
(Note that in questions like this, you and I have the same resources -- I'm not an expert in everything related to gnuplot) This is the best I've been able to do: a 300x300 matrix on a 300x300 PNG file: There is a margin (between the black line and the plot) that means the data is not plotted exactly 1:1. I haven't figured out how to remove that margin. If you can't find how in the manual, it may be worth it to ask the authors. I've found they're generally responsive. |
Beta Was this translation helpful? Give feedback.
-
I have 2 questions:
Namely support
m x n
matrices with values in[0, 1]
(AbstractFloat
) or<: Unsigned
andm x n x 3
with values in[0, 1]
(AbstractFloat
) or<: Unsigned
?Beta Was this translation helpful? Give feedback.
All reactions