Menu

#522 Scale pattern fill style

open
nobody
None
5
2021-04-20
2021-04-20
Teo
No

Hi,

It seems that the pattern fill style behavior that does not match the rest of gnuplot.

When I want to generate a gnuplot image larger, I use a 'SizeScale' parameter, along with the 'fontscale' and 'linewidth' parameters, and this will make my fonts and lines larger in the same way as the image size.

For example:

SizeScale=1
set term pngcairo enhanced font "Verdana,10" size 960*SizeScale, 720*SizeScale rounded fontscale SizeScale linewidth SizeScale
set output 'image'.SizeScale.'.png'
set xrange [0:3]
set yrange [0:3]
set obj 10 rect from 1,1 to 2,2 fc rgb '#bb01ac' fs pattern 4 bo -1
plot 0/0

If I change the 'SizeScale' parameter to 8, the image will be 8 times bigger, and every line and font will be also 8 times bigger and the proportions will be maintained.
Everything but the pattern, where the lines will maintain the same width and separation between them, and so in the large image the pattern is too small to be noticed.
I have attached image1.png and image8.png so you can see what I mean.

Could this behaviour change so the pattern size adapt to the scale, as the rest of gnuplot plots?
For example, this was accepted in a past request I opened for box labels: https://sourceforge.net/p/gnuplot/feature-requests/454/

Thank you,
Teo

2 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.