Post by Hans-Bernhard Broeker[...]
If you ask me, even without doing a rotation, the graph just doesn't
look right.
That's mainly a question about *where* the color box gets put, then, not
how the 'view' setting affects its placement, but shouldn't. That didn't
appear to be covered by Petr's question. Maybe you discussed so much in
private that you forgot what part of that long story the rest of us never
heard of.
Yes. That's the case. I myself can't remember everything now, and I
think it is better to put this off to post 4.0 and then have a
discussion about it. The bottom line is that I added colorboxes to 2D
images and thought that the 3D method of basing the position on the
plotting axes is silly. Rather, I just shifted the plotting window and
left room for the colorbox. The plot simply readjusts itself. Simple.
I think also in our discussions, Petr and I thought controlling the
size of the colorbox was difficult as it currently exists.
Post by Hans-Bernhard BroekerIf the colorbox is removed, there is a nice even border around the plot.
That this margin is even is nice alright. Its very existence, however,
arguably isn't. Esp. since the way it's generated completely neglects a
couple of important settings, most importantly all the margins except
lmargin, and also 'set size ratio'.
Exactly. I think this is what got me looking into margins, not only on
the X11 displays but also the PSLaTeX output. There doesn't need to be
such a big margin there, UNLESS it has something to do with allowing
enough room so that rotating the image doesn't cause a different view of
the 3D graph to extend off the screen. This could be the issue with why
PSLaTeX doesn't work. It might be basing its margins and background on
the original 3D graph and not the rotated. Consequently, it cuts off
some of the graph.
Post by Hans-Bernhard BroekerI personally think that the current arrangement of the colour box and plot
is reasonably fine. The graph itself is better off being centered in the
window. Given we have those rather uselessly wide margins to the side of
the 3D graph anyway, I don't see any harm done putting optional plot
decorations like the color box out there.
Well, get rid of the large margins and adjust them based upon the
presence of a colorbox. There's the solution. It would be the same
routine for both 2D and 3D. There is an example in the image demo that
I've put at
http://acer-access.com/~***@acer-access.com/
(Click on "Gnuplot Stuff", and then "colorboxdem.png".)
Check out how slick that looks. The colorbox isn't wider than it need
be. The plots are all balanced, with more space between the individual
multiplots. I doubt a 3D colorbox example would look that good as it
currently exists.
Post by Hans-Bernhard BroekerBut when the color box is present, the plot image isn't altered; the
color box is just stuffed in one of the margins. I'm arguing that the
colorbox position code should open that margin a bit more and place the
colorbox as a separate entity. Repositioning the plotting region
shouldn't be that difficult. It would be the same for both 2d and 3d.
In a nutshell, that would mean you want boundary3d() to behave more
similarly, or maybe even just *call*, its 2D sibling: boundary().
Right. My point is that there is more shared between 2D and 3D plots
than the gnuplot code would suggest. I think there should be a
"graphics.c" (the majority of routines including positioning and drawing
of color boxes), a "graph2d.c" (probably a small file), a "graph3d.c"
(probably a bit bigger than graph2d.c because it holds some translation
routines).
Post by Hans-Bernhard BroekerFine
with me if someone gets it done, but unless we want to put 4.0 on hold for
another several months of bugfixing after a change in such a rather
fragile part of the code, I recommend against trying this right now.
That was my point. This is easily a 6 month cycle of mods/debug/tryout.
It is something that requires intense effort and time.
Post by Hans-Bernhard BroekerFor the time being, the change I outlined would do exactly what Petr did
(seem to) ask for: it makes the position of the color box independent of
'set view' by fixing it to terminal-independant and view-independent
position. One could argue that the correct position should be given in
the same coordinate system as user-specified color box placements, i.e.
"screen" coordinates, but that's a separate issue.
OK, so you are saying the rotating colorbox in 3D is embarrassing enough
to warrant a quick fix. :-) That's fine with me.
Post by Hans-Bernhard BroekerHey, I just looked at the "pslatex" mode because I recalled a problem
with 3d borders there. I see that "pslatex"'s output is slightly
different than it used to be. No longer are there separate files for
the postscript and Tex.
You looked incorrectly then, I guess. The option needed to get separate
files is 'auxfile', and it's still alive and well, as far as I'm aware of.
Ah. Thanks.
Dan