help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: print question


From: Daniel Oberhoff
Subject: Re: print question
Date: Tue, 26 Jun 2007 16:51:05 +0200

Hi,

octave:12> which pcolor
pcolor is the user-defined function from the file
/Users/daniel/octave/plot-1.0.0/pcolor.m

octave forge function. But imagesc does something very similar, if you want base octave stuff.

I _do_ want vector graphics, these patches are lowres, i.e. 5x5, and in inkscape I shear them around to emulate 3d stacks, and that would look rather bad using pixel graphics.

Cheers,

Daniel

Am 26.06.2007 um 16:08 schrieb Søren Hauberg:

Hi,
First of all, what is "pcolor"? I assume it's a function you've written that displays an image... Anyway, I don't quite understand your problem. Is the image interpolated when shown on screen or when you look at the saved image with a pdf viewer? On my system gnuplot doesn't do any interpolation when displaying images. If it is the pdf that's interpolated then I guess it's due to your PDF viewer. Why not save the image to disc as a PNG (or similar) file? Vector graphics (like PDF) is just awful for images.

Søren

Daniel Oberhoff skrev:
Hi all,
I am running a self compiled octave 2.9.12 together with an equally self compiled gnuplot 4.3. I make a plot of a small gaussian image patch like this:
[x,y]=meshgrid(-2:2,-2:2);
g=exp(-(x.*x+y.*y)/8);
pcolor(g);
and then print it like this:
print -dpdf gausmask_octave.pdf
curiously the print receives some interpolation, fuzzing up the originally blocky image, which is not what I want, because this is for a paper and I want to show what I actually use. Is there a way to switch this smoothing off? btw, is it a known bug in octave 2.9.12/gnuplot 4.3 that the hold setting is always on, i.e. I always have to clf before a new plot and hold on/off has no measurable effect?
anyhow, love the image capability brought out in gnuplot now.
Best
Daniel
_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave




reply via email to

[Prev in Thread] Current Thread [Next in Thread]