From: Dmitry <unk...@gm...> - 2025-02-21 16:32:04
|
Hello Ethan, thank you very much for the help. I have improved your script a little bit in order to remove the white space in the caption part( found a hint here https://stackoverflow.com/questions/68269120/fix-graph-size-and-automatically-adjust-canvas). The modified script uses tightboundingbox and adds a couple of empty labels in order to save the width of the graph. The labels add a little bit of white space left and right, but that's not a big deal. So, your solution works perfectly, thank you very much for the help. I have attached the modified script and a page with my plotted graphs in order to demonstrate the final result, in case if anyone is interested. It would be nice if gnuplot would support this kind of behavior without hacks, since plotting a uniformly looking series of plots with different legend heights (the legend heights are unknown upfront) should be a common task. Thanks! P.S. may be this solution deserves to to be listed at gnuplot wiki (something like "how to plot uniformly looking series of plots with variable legend height".) > If the goal is to include these figures in a LaTeX document, perhaps you > could generate the figure and the caption separately, then include them > on after the other in the *.tex document. I attach a script that shows this. > > - Ethan |