[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
arbitrary colormaps with gnuplot 4.0 and surfaces
From: |
David Bateman |
Subject: |
arbitrary colormaps with gnuplot 4.0 and surfaces |
Date: |
Mon, 12 Nov 2007 18:26:19 +0100 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060921) |
Attached is a patch that allows arbitrary colormaps to be used with
gnuplot 4.0 and surfaces
D.
--
David Bateman address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
*** ./scripts/plot/__go_draw_axes__.m.orig1 2007-11-12 17:43:26.383930087
+0100
--- ./scripts/plot/__go_draw_axes__.m 2007-11-12 18:24:02.170352148 +0100
***************
*** 765,771 ****
fwrite (plot_stream, palette_data, "float32");
endif
else
! fputs (plot_stream, "set palette defined (0 \"dark-blue\", 1
\"blue\", 2 \"cyan\", 3 \"yellow\", 4 \"red\" , 5 \"dark-red\");\n");
endif
fputs (plot_stream, "unset colorbox;\n");
endif
--- 765,782 ----
fwrite (plot_stream, palette_data, "float32");
endif
else
! fputs (plot_stream, "set palette defined (");
! for i = 1: columns(palette_data)
! col = floor(palette_data(2:end,i).' * 255);
! if (i == 1)
! fputs (plot_stream, sprintf("%d \"#%02X%02X%02X\"", i - 1,
! col(1), col(2), col(3)));
! else
! fputs (plot_stream, sprintf(", %d \"#%02X%02X%02X\"", i - 1,
! col(1), col(2), col(3)));
! endif
! endfor
! fputs (plot_stream, ");\n");
endif
fputs (plot_stream, "unset colorbox;\n");
endif
2007-11-12 David Bateman <address@hidden>
* plot/__go_draw_axes.m: Allow arbitrary colormaps with gnuplot
4.0 and surface plots.
- arbitrary colormaps with gnuplot 4.0 and surfaces,
David Bateman <=