Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3161

Re: label fontsize variable

From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: label fontsize variable
Date 2016-01-19 16:10 +0100
Organization solani.org
Message-ID <n7ljkm$c7t$1@solani.org> (permalink)
References <n7l46b$sb5$1@newsserver.rrzn.uni-hannover.de>

Show all headers | View raw


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



Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

label fontsize variable Jörg Buchholz <bookwood4new@freenet.de> - 2016-01-19 11:46 +0100
  Re: label fontsize variable Karl Ratzsch <mail.kfr@gmx.net> - 2016-01-19 16:10 +0100
    Re: label fontsize variable Jörg Buchholz <bookwood4news@freenet.de> - 2016-01-19 19:20 +0100
      Re: label fontsize variable Karl-Friedrich Ratzsch <mail.kfr@gmx.net> - 2016-01-19 22:38 +0100

csiph-web