|
From: Daniel J S. <dan...@ie...> - 2003-12-12 18:45:55
|
Petr Mikulik wrote: >I'd like to ask here again: Could somebody have a look how to fix position >of the color box when a surface is rotated (by mouse or by 'set view' >commands). It's fine for 'set view map', but not for other views. E.g. > set pm3d > splot x*y >.. and rotate the surface by mouse > >Colorbox should stay at that position where it is for the default view. > >I had a look to the source of 3d positions, but I failed to figure it out. I >hope somebody will be more lucky. > >This fix would be nice for the forthcoming 4.0 release... > I can understand wanting this change, as you and I talked about this outside the list and I want to see this fixed as much as anyone, but I've feared the "fix a few things first" approach to making a release. There are a couple things about this. You and I agreed that a nicer control of the colorbox position is in order. Also, I made a comment a while back that I think there should be more consistency amoung 2d and 3d plots. The "image" patch allows a colorbox for 2d plots, similar to "map" mode for 3d. The code is fine for the 2d colorbox in the patch, but the organization is a kludge. It is in two different locations for 2d and 3d, and the two are done in different ways. My opinion is to combine the two in a consistent fashion, reusing the colorbox placement code. It is something outside of the plot (or it should be, unlike the quick fix of the 3d plot method) and will be the same for 2d/3d. It simply takes up some space and repositions the plotting area of the actual plot. If there is to be any progress and things done "right", then one has to allow major changes and allow the code to destabilize for a while. One can put some effort into fixing and debugging that, then after 4.0 if there seems to be a need for colorboxes in 2d plots then one may end up reprogramming some of it. Dan |