Discussion:
contour plot smoothing
(too old to reply)
Thomas Plehn
2007-10-09 12:25:01 UTC
Permalink
Hello,

is there any way to control the magnitude of the contour line smoothing
in contour plots? Perhaps a low level command which tells gnuplot
directly how much smoothing to use? I am thinking of something like
__gnuplot_set__ ...
Any help appreciated.
david bateman
2007-10-09 15:47:33 UTC
Permalink
Post by Thomas Plehn
Hello,
is there any way to control the magnitude of the contour line smoothing
in contour plots? Perhaps a low level command which tells gnuplot
directly how much smoothing to use? I am thinking of something like
__gnuplot_set__ ...
Any help appreciated.
What version of Octave, and what OS? What do you mean by magnitide of
the contour line smoothing? Is that the magnitude of the contour lines
or the fineness of the grid onto which they are given.

If you are using 2.9.13 or later then you can replace

something like

countour(Z)

with

contour(Z,-40:5:0)

to plot contours at intervals of 5 between -40 and 0. If the issue is
the fineness of the grid you plot the contours on to, then you need to
supply a finer set of data. You could use interp2 on Z above to do
this..

D.
Thomas Plehn
2007-10-09 16:18:45 UTC
Permalink
Post by david bateman
Post by Thomas Plehn
Hello,
is there any way to control the magnitude of the contour line smoothing
in contour plots? Perhaps a low level command which tells gnuplot
directly how much smoothing to use? I am thinking of something like
__gnuplot_set__ ...
Any help appreciated.
What version of Octave, and what OS? What do you mean by magnitide of
the contour line smoothing? Is that the magnitude of the contour lines
or the fineness of the grid onto which they are given.
Hello,

I found exactly what I was looking for. The gnuplot variable "cntrparam"
does exactly what I want. An explanation can be found here:

http://www.gnuplot.info/docs/node166.html
David Bateman
2007-10-09 20:12:09 UTC
Permalink
Post by Thomas Plehn
Post by david bateman
Post by Thomas Plehn
Hello,
is there any way to control the magnitude of the contour line smoothing
in contour plots? Perhaps a low level command which tells gnuplot
directly how much smoothing to use? I am thinking of something like
__gnuplot_set__ ...
Any help appreciated.
What version of Octave, and what OS? What do you mean by magnitide of
the contour line smoothing? Is that the magnitude of the contour lines
or the fineness of the grid onto which they are given.
Hello,
I found exactly what I was looking for. The gnuplot variable "cntrparam"
http://www.gnuplot.info/docs/node166.html
If you are using Octave 2.9.10 or later you should not use the gnuplot
interface directly. The reason is that if you do, you are bypass the
graphic handles code and the next drawnow risks to remove any changes
you make. Therefore if you use the gnuplot interface, use only that..

D.

Continue reading on narkive:
Loading...