On Thu, 17 Jul 2008 15:46:30 +0200, Morten Lemvigh wrote:
> Hi,
>
> I use gnuplot to plot some spectrograms over audio data. So far I have
> been using pm3d, but since it's a 3D plot I get a lot of extra space
> around the plot (for rotating the 3D plot), which I have not been able
> to remove.
Have you looked at the `set (l|r|t|b)margin' commands? Don't think
they'll work with 3D, though, at least not in 4.2.x
[To the devs: I see that in my CVS snapshot the help says "For 3D plots,
only the left margin can be set using character units." Does this imply
the other margins *can* be set, using the `at screen' option...?]
> Instead I've looked at the image plotting style. It fills the entire
> canvas and thus solves the space issue. But when I compare a pm3d-plot
> with an image-plot of the same data, the image plot looks a lot more
> pixelated.
Because it's an image - it's made of pixels ;-)
> Is the pm3d style doing some kind of interpolation to smooth the plot?
No (although it can be made to do so). Image and pm3d simply do different
things. See `help image', `help pm3d' for the full (rather long) story.
> Furthermore the tic marks on the X- and Y-axis disappear when I use the
> image style. I cannot get them back by setting xtics and ytics.
I guess that's because images do not have a "scale" - they're just arrays
of pixels. You could work around that with arrows and labels, I guess.
> I would like to either have the space removed from the pm3d plot or have
> the tic marks on the image plot. Any ideas?
>
> I'm using gnuplot version 4.2.2
--
Lionel B


|