[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Forcing the colorbar onto the canvas for postscript and png's
From: |
David Bateman |
Subject: |
Forcing the colorbar onto the canvas for postscript and png's |
Date: |
Tue, 27 Nov 2007 14:38:58 +0100 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060921) |
Here is a patch based on an idea from Petr Mikulik, that forces the
gnuplot multiplot mode to be used when there is a colorbar. This means
that the colorbar can be on the canvas for postscript and png plots
which it isn't without this patch.
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_figure__.m.orig29 2007-11-27 14:35:56.014338015
+0100
--- ./scripts/plot/__go_draw_figure__.m 2007-11-27 14:33:15.134488654 +0100
***************
*** 37,42 ****
--- 37,46 ----
switch (obj.type)
case "axes"
axes_count++;
+ ## Force multiplot with a colorbar to ensure colorbar on the page
+ if (!strcmp (obj.__colorbar__, "none"))
+ axes_count++;
+ endif
endswitch
endfor
2007-11-27 David Bateman <address@hidden>
* plot/__go_draw_figure__.m: Force a multiplot mode with a
colorbar, to ensure that the colorbar is on the canvas for png and
postscipt outputs.
- Forcing the colorbar onto the canvas for postscript and png's,
David Bateman <=