Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: label fontsize variable Date: Tue, 19 Jan 2016 16:10:13 +0100 Organization: solani.org Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: solani.org 1453216214 12541 eJwNwoERwCAIBLCVRPgHxlHA/UdoL4FSWG4EDQ/PtSuNSd/iR2Nhxyqii/fcyRGJmsjfTEl/CEUQ7w== (19 Jan 2016 15:10:14 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 19 Jan 2016 15:10:14 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 X-User-ID: eJwFwQcBwEAIBDBLrIMih1H8S/gE6uwT5nDD4e5rnVEJlFpl/wDIc0hkMZdR3FOELeVc+AMfgREn In-Reply-To: Cancel-Lock: sha1:nVK+nGWb1x32fWC8YrdzqPZPYqI= X-NNTP-Posting-Host: eJwNxsEBwCAIA8CVREnQcYSS/Uew9zosGiucoEPQvbJNiZUrC3Y5Gv9CPcBv7lh1kq52bz/zATXmEZg= Xref: csiph.com comp.graphics.apps.gnuplot:3161 Am 19.01.2016 um 11:46 schrieb Jörg Buchholz: > Hello, > > is it possible to change the fontsize with a variable? I want do > something like this: > > sf=0.1 #scalefactor > set label 1 'test' at screen 0.5,0.5 center font "Helvetica,sf*40" You need to give the fontspec as a string variable: fontstr = sprintf("Helvetica, %.f",sf*40) set label .... font fontstr