From: Ethan M. <eam...@gm...> - 2025-02-16 22:50:52
|
On Saturday, 15 February 2025 06:39:09 PST Dmitry wrote: > > 2) The gnuplot development branch supports a new graphical entity called > > a "mark". Each mark is essentially a graphics subroutine that draws a > > shape consisting of line segments and filled polygons. > > Helo Ethan, > > thank you very much for the suggestion. I tried it. It's almost > perfect, but it does not work correctly with tikz terminal when plotsize > is set (which I'm using since I'm plotting a number of plots in cycle > and I want all graphs to remain the same size, regardless of the legend > size.). > > So, all marks are shrunken horizontally, for example instead of circles > gnuplot plots agg-like points, please see the attached example. Is there > any way to fix it? That seems to be a design problem with the tikz terminal "plotsize" option. Gnuplot nicely lays out the plot with the requested aspect ratios, relative spacing, etc. Then tikz later stretches or compresses the whole thing to fit a different size, ruining the aspect ratio. I don't think I've ever used it. 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. This leaves a bunch of vertical whitespace in the caption part, which you could maybe trim automatically or at worst insert a \vspace{-XXcm} line manually. Or if you know in advance how many key entries there are maybe you could adjust the height of the caption in the "set term" command in the gnuplot script itself. - Ethan |