~uhh-ssd/+junk/humidity_readout

« back to all changes in this revision

Viewing changes to plplot/plplot-5.9.9/examples/octave/p18.m

  • Committer: Joachim Erfle
  • Date: 2013-07-24 13:53:41 UTC
  • Revision ID: joachim.erfle@desy.de-20130724135341-1qojpp701zsn009p
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Copyright (C) 2002 Joao Cardoso.
 
2
## 
 
3
## This program is free software; you can redistribute it and/or modify it
 
4
## under the terms of the GNU General Public License as published by the
 
5
## Free Software Foundation; either version 2 of the License, or (at your
 
6
## option) any later version.
 
7
## 
 
8
## This program is distributed in the hope that it will be useful, but
 
9
## WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11
## General Public License for more details.
 
12
##
 
13
## This file is part of plplot_octave.
 
14
 
 
15
function p18
 
16
 
 
17
  global pl_automatic_replot
 
18
  t = pl_automatic_replot;
 
19
  pl_automatic_replot = 0;
 
20
 
 
21
  plsetopt "db";
 
22
  fig( free_fig); #  unused plot window
 
23
 
 
24
  [x, y, z] = peaks;
 
25
  colormap(bgr);
 
26
 
 
27
  title("Set and drag button 1");
 
28
  xlabel "Button 2 to finish";
 
29
  ylabel "Button 3 to restart";
 
30
  meshc( x, y, z);
 
31
 
 
32
  set_view("meshc", x, y, z);
 
33
  closefig
 
34
 
 
35
  pl_automatic_replot = t;
 
36
 
 
37
endfunction