[Jprogramming] Output fonts
Sherlock, Ric
R.G.Sherlock at massey.ac.nz
Tue Jun 15 09:52:17 HKT 2010
> From: David Vincent-Jones
> Sent: Tuesday, 15 June 2010 12:40
>
> On Sat, 2010-06-12 at 16:47 +1200, Sherlock, Ric wrote:
> > Can you elaborate? If we can pinpoint what is inconsistent/confusing
> > we can try and clarify it on the wiki?
>
> A couple of questions .... a simple plot
>
> pd 'reset'
> pd 'textfont arial 40'
> pd ? 100#100
> pd 'show'
> pd 'save png "/home/david/Desktop/test.png" 600 400'
> |domain error: isi_png
> | comp=.<.{.((-.msk)#num) ,comp
>
> 1. Textfont 12, 20 ... 40 nothing changes on the plot or the
> printout.
Nothing changes because the textfont option applies to the text commands http://www.jsoftware.com/jwiki/Plot/Commands#DrawingCommands not the font of the labels. There are different font options for different parts of the plot:
captionfont, keyfont, labelfont, subtitlefont, symbolfont, textfont, titlefont http://www.jsoftware.com/jwiki/Plot/Options
> 2. 'save bmp' works just fine but not 'save png' .... why
The different file formats for the save command have different options http://www.jsoftware.com/jwiki/Plot/Commands#Copycommands . From that page, only the 'save bmp' format takes a width and height.
pd 'reset'
pd 'labelfont arial 40'
pd ? 100#100
pd 'show'
pd 'save png ', jpath '~temp/test.png'
More information about the Programming
mailing list