|
From: | Daniel J Sebald |
Subject: | Re: Problem with Ben's change to preserve axis propers when used with colorbars |
Date: | Thu, 16 Oct 2008 22:41:05 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020 |
David Bateman wrote:
John W. Eaton wrote:It seems to work properly for me after the patch, though I find it somewhat strange that pcolor (peaks ()); colorbar (); produces the first attached plot. I would expect the colorbar to have the same height as the pcolor plot. It seems to work correctly for the contourf case as shown in the second attached plot. Is this difference caused by splot vs. plot in gnuplot or is it something that we could control without too much effort?Yes it is splot versus plot.. Basically the 3D plot from splot with the view for pcolor is such that we can't control the size of the plot correctly. I don't think there is much that we can do, if we keep the pcolor as a surface plot with a particular view. Changing it to an image would fix it, but wouldn't be compatible.
David has that right. Over the years I lobbied for and wrote some patches for making gnuplot 2D and 3D displays more similar so that the two could be folded together in terms of similar elements. One change was to make the method of bringing data into 2D and 3D plots the same. Another I'd hoped for but couldn't gather momentum for was making the layout of margins, keys (we'd talked of multiple keys), colorboxes, etc. the same code between 2D and 3D. I'd say don't try to work around this issue. Instead submit a request to the gnuplot sourceforge page or discussion list. The 2D layout is something I reworked a little way back and is likely the better candidate for "proper" behavior. Dan PS: That second plot with contourf looks sharp.
[Prev in Thread] | Current Thread | [Next in Thread] |